I used this module to create a simple server. The server I need simply accepts some data and drops it into an MQ queue (not my choice!) and returns a confirmation. When testing this, I found that only one client was getting response. Other clients could send but not receive. When the first client terminated, then the second client got a lot of responses. As suspected, the server was 'blocking'. According to perldoc, if type is set to 'select', sometimes it may block when there is a lot of input. In my case there was only minimal input.

Exact wording....
"The select-based server may block on i/o on a heavily  loaded system. If you need to do non-blocking i/o you   should look at NetServer::FastSelect."

I could set the server type to 'forking'  or try the FastSelect.. but I would like to know if 'select' would necessarily block regardless of amount of traffic.



_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to