[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaSocket, Win32 and select()
- From: Taj Khattra <taj.khattra@...>
- Date: Fri, 28 Jan 2005 13:23:55 -0800
On Fri, 28 Jan 2005 00:35:43 -0500, Rici Lake <lua@ricilake.net> 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
processed."
- References:
- LuaSocket, Win32 and select(), duck
- Re: LuaSocket, Win32 and select(), Diego Nehab
- Re: LuaSocket, Win32 and select(), Rici Lake
- Re: LuaSocket, Win32 and select(), Diego Nehab
- Re: LuaSocket, Win32 and select(), Rici Lake
- Re: LuaSocket, Win32 and select(), skaller
- Re: LuaSocket, Win32 and select(), Rici Lake