it is strange and confusing when in this case one of the libraries is called "broken".
But it *IS* broken. Not because it doesn't remove a closed filehandle from the select set; but because it *SILENTLY* ignores the request to do so.
As I said way back up there^, with added emphasis:
Even a simple warning that you've made an attempt to remove a closed handle would help; but it isn't hard to fall back on a linear search of the array of file handles and relate their position in the array back to a fileno and hence bit vector bit.
The API is remove() not removeOrDoNothing().
In reply to Re^11: Does IO::Select work? (perfect)
by BrowserUk
in thread Does IO::Select work? Anywhere?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |