Hello.
I have a problem with TCP server like this

require "socket"
server = TCPServer.open(2000)
loop do
  Thread.start(server.accept) do |client|
    while msg = client.gets
      sleep 10
      client.puts "bye"
    end
  end
end

While server sleep if client breaking connection (hard break), server
becomes invalid: he can accept connections, but can not puts to client
any data and no exceptions return.
Ruby 1.9.2
What is happened?

*sorry for my english

-- 
Posted via http://www.ruby-forum.com/.