>>> 2) Treat xs having a file descriptor as meaning the client has
>>> timed out, and thus we should just clean up and go home?
>>
>> I don't think that's a good assumption.
>
> No, I think it only means "there's something for you to know
> about", rather than telling you it's necessarily dead.
>
>>> 3) Try to do something like read on the descriptor in order to
>>> figure out what is actually wrong with it?
>>
>> That's a reasonable approach.
>>
>> With either 1 or 3, the difference vs. not passing any fds to the
>> 3rd arg is that there are fewer cases where select will hang
>> until the timeout. Precisely which cases those are varies by
>> platform, unfortunately.
>
Sure. My question was because all that 'man select' tells me is that
'there is a pending error on this handle', but it doesn't tell me how
to actually get an error from it. I didn't know whether I should be
doing something like fctl, or whatever. But I guess just treat it as
though the file was ready to be read, and get the error from there.
Thanks,
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
...
>>> 2) Treat xs having a file descriptor as meaning the client has
>>> timed out, and thus we should just clean up and go home?
>>
>> I don't think that's a good assumption.
>
> No, I think it only means "there's something for you to know
> about", rather than telling you it's necessarily dead.
>
>>> 3) Try to do something like read on the descriptor in order to
>>> figure out what is actually wrong with it?
>>
>> That's a reasonable approach.
>>
>> With either 1 or 3, the difference vs. not passing any fds to the
>> 3rd arg is that there are fewer cases where select will hang
>> until the timeout. Precisely which cases those are varies by
>> platform, unfortunately.
>
Sure. My question was because all that 'man select' tells me is that
'there is a pending error on this handle', but it doesn't tell me how
to actually get an error from it. I didn't know whether I should be
doing something like fctl, or whatever. But I guess just treat it as
though the file was ready to be read, and get the error from there.
Thanks, enigmail. mozdev. org/
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk5 3P44ACgkQJdeBCY SNAANqPwCeKfGsb nMAKZTn5TD7E04u UPWW OkUJftzlnMq+ cDTDOFr
OF0AoIMpp2Rm+
=UY4l
-----END PGP SIGNATURE-----