lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Fri, 28 Jan 2005 00:35:43 -0500, Rici Lake <> wrote:
> In the worst case, where write() really is atomic and the
> send buffer has just enough room for select() to conclude
> that you could write something but you actually wanted to
> write more than that (atomically), you have the problem
> where select() consistently immediately returns a false
> positive on a particular socket. (At this point, I really
> do not know what, if any, guarantees different OS's provide
> on the atomicity of write()s, but it seems like a possible
> scenario.)

isn't that what SO_SNDLOWAT is for?  from SuSv3:

"A select() operation testing the ability to write to a socket
shall return true only if the send low water mark could be