close socket when we stop accepting
This commit is contained in:
parent
9e3b7fe987
commit
daa31f285d
|
@ -258,6 +258,7 @@ proc doAccept(puncher: TcpSyniPuncher, srcIp: IpAddress,
|
|||
# FIXME: should attempts have timestamps, so we can decide here which ones to delete?
|
||||
if attempts.len() <= 1:
|
||||
break
|
||||
sock.close()
|
||||
|
||||
proc accept*(puncher: TcpSyniPuncher, srcPort: Port, dstIp: IpAddress,
|
||||
dstPorts: seq[Port],
|
||||
|
|
Loading…
Reference in New Issue