Kamil Dudka wrote:
> > Daniel says that the io operation can in fact block anyway, when the
> > socket is in blocking mode.
> 
> Can you reference any specification saying otherwise?

Do man pages count? I've quoted a few, earlier in the thread. Mikhail
also quoted SUSv3 IIRC, which seemed to agree with the Linux select(2)
man page.

--8<-- Linux select(2)
DESCRIPTION
       select() and pselect() allow a program to monitor multiple file
       descriptors, waiting until one or more of the file descriptors become
       "ready" for some class of I/O operation (e.g., input possible). A file
       descriptor is considered ready if it is possible to perform the corre‐
       sponding I/O operation (e.g., read(2)) without blocking.
-->8--

The paragraph "Select Law" in Linux select_tut(2) clarifies a little
further.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to