My perl script accepts a socket connection then waits for a 2nd socket connection
while ( my $cgiclient = $cgisock->accept() ) {....
I need my script to stop waiting for a 2nd socket connection if the first socket connection breaks. How do I monitor both in the above wait condition?
In reply to how to tell when socket breaks? by redss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |