Revert "close on failed low-TTL connects too"
This reverts commit 778d8752d2
.
This commit is contained in:
parent
778d8752d2
commit
64cc41eb90
|
@ -236,9 +236,9 @@ proc prepareAccept(attempt: AcceptAttempt) {.async.} =
|
||||||
await connectFuture or sleepAsync(Timeout)
|
await connectFuture or sleepAsync(Timeout)
|
||||||
if connectFuture.finished():
|
if connectFuture.finished():
|
||||||
echo "connected during accept phase"
|
echo "connected during accept phase"
|
||||||
|
sock.close()
|
||||||
except OSError:
|
except OSError:
|
||||||
discard
|
discard
|
||||||
sock.close()
|
|
||||||
|
|
||||||
proc doAccept(puncher: TcpSyniPuncher, srcIp: IpAddress,
|
proc doAccept(puncher: TcpSyniPuncher, srcIp: IpAddress,
|
||||||
srcPort: Port) {.async.} =
|
srcPort: Port) {.async.} =
|
||||||
|
|
Loading…
Reference in New Issue