Re: Detecting lost connections in TCPServer connection
Peter Hickman <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <CALxYQy705AGZJ8Nc_jA1aFnFOXo7h=_LN1g94cUOj4v9b2F0tw@mail.gmail.com> |
I've tested this by counting the threads. This is what I've put before the
main loop
Thread.start do
loop do
puts "Thread count #{Thread.list.count}"
sleep 5
end
end
Damn. The demo code I gave does reduce the number of threads. The real
application (somewhat larger) does not
Ignore this thread :) Marvin is correct, my error handling is eating up the
problem with the nil being returned
Well that was an easy fix. Thank you both for your help
Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>