don't break the accept loop just because we got a client connection that closed early

bug/bundler_fix
Brent Cook 2016-01-22 13:52:00 -06:00
parent eb73612a5f
commit ac8b483d32
1 changed files with 3 additions and 4 deletions

View File

@ -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
else
self.pending_connections += 1
lqueue.push(client)
end
self.pending_connections += 1
lqueue.push(client)
rescue ::Exception
wlog("ReverseTcpHandlerListener-#{local_port}: Exception raised during listener accept: #{$!}\n\n#{$@.join("\n")}")
break