|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^9: Problem handling 2 simultaneous socket streamsby zentara (Cardinal) |
| on Oct 05, 2011 at 09:25 UTC ( [id://929742]=note: print w/replies, xml ) | Need Help?? |
|
Should each of my stream subroutines use the sysread as well? Your code is kind of complex for me to setup and run and test myself. However, if you are experiencing blocking problems, yes, switch to sysread. The other thing to try is to put a timeout in your select statement, I noticed you have none.
I'm not really a human, but I play one on earth. Old Perl Programmer Haiku ................... flash japh
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||