Re: select for UNIX sockets?

From: Krzysztof Halasa (
Date: Tue Jun 10 2003 - 09:21:28 EST

Timothy Miller <> writes:

> If you were to use blocking writes, and you sent too much data, then
> you would block. If you were to use non-blocking writes, then the
> socket would take as much data as it could, then return from write()
> with an indication of how much data actually got sent. Then you call
> select() again so as to wait for your next opportunity to send some
> more of your data.

This is all true in general but in this particular case of unix datagram
sockets select (poll) is just buggy.

Krzysztof Halasa
Network Administrator
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:23 EST