From 64cc41eb907e79cfa3c5212efa14f470704d7a4d Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Wed, 7 Oct 2020 00:23:40 +0200 Subject: [PATCH] Revert "close on failed low-TTL connects too" This reverts commit 778d8752d218aa74e68873eb2d3fc476fceed34b. --- tcp_syni.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp_syni.nim b/tcp_syni.nim index bc3a32c..651eda6 100644 --- a/tcp_syni.nim +++ b/tcp_syni.nim @@ -236,9 +236,9 @@ proc prepareAccept(attempt: AcceptAttempt) {.async.} = await connectFuture or sleepAsync(Timeout) if connectFuture.finished(): echo "connected during accept phase" + sock.close() except OSError: discard - sock.close() proc doAccept(puncher: TcpSyniPuncher, srcIp: IpAddress, srcPort: Port) {.async.} =