Glynn Clements wrote:
> I don't think that you should use select() on descriptors which are
> non-blocking. You would normally either use select() or non-blocking
> I/O, but not both.
I have to disagree here. Using select is REQUIRED when doing
non-blocking I/O. There is no other method for waiting until data is
available (or check which filedescriptors that have data waiting if you
are using a zero timeout).
> This *may* be what's causing select() to indicate an exceptional
> condition on FromDH.
More likely that there has been a exception of some kind. Exceptions are
not neccesary the same as errors at all times. Most people use NULL for
exception fd_set. All the normal errors are detected by read/write as
usual.
---
Henrik Nordstr�m