Patched bind_socket: support multiple clients, don't close the client socket

This commit is contained in:
antisnatchor
2012-07-15 17:26:01 +01:00
parent dd43da5e51
commit be71984362

View File

@@ -68,8 +68,11 @@ module Handlers
t = Thread.new {
server = TCPServer.new(host,port)
loop do
client = server.accept
client.close
Thread.start(server.accept) do |client|
# client.puts ""
# we don't close the client socket
# client.close
end
end
}
@sockets[name] = t