What is the problem you are encountering with the current method?
Suppose you run it on a very busy machine: even if short, the amount of time that passes from a timeouted accept and the new accept call could be long enough that a client tries to connect in between and finds nothing accepting on the socket. Not good...
--bronto
In theory, there is no difference between theory and practice. In practice, there is.
In reply to Re^2: Thread::Queue and objects
by bronto
in thread Thread::Queue and objects
by bronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |