Revert "close on failed low-TTL connects too"

This reverts commit 778d8752d2.
This commit is contained in:
Christian Ulrich 2020-10-07 00:23:40 +02:00
parent 778d8752d2
commit 64cc41eb90
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 1 additions and 1 deletions

View File

@ -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.} =