in reply to Re: Re: flushing sockets
in thread flushing sockets
and then this line pauses for a tenth of second for no apparent reason:while(@bits = $selectFD->can_read)
What you probably want to do is:select(undef, undef, undef, 0.1);
@bits = $selectFD->can_read(30); if (@bits == 0) { # we timed out } else { for (@bits) { blah blah blah } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: flushing sockets
by scuzzy (Novice) on Feb 18, 2003 at 10:22 UTC |