don't break the accept loop just because we got a client connection that closed early
parent
eb73612a5f
commit
ac8b483d32
|
@ -91,11 +91,10 @@ module ReverseTcp
|
|||
client = self.listener_sock.accept
|
||||
if ! client
|
||||
wlog("ReverseTcpHandlerListener-#{local_port}: No client received in call to accept, exiting...")
|
||||
break
|
||||
end
|
||||
|
||||
else
|
||||
self.pending_connections += 1
|
||||
lqueue.push(client)
|
||||
end
|
||||
rescue ::Exception
|
||||
wlog("ReverseTcpHandlerListener-#{local_port}: Exception raised during listener accept: #{$!}\n\n#{$@.join("\n")}")
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue