[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can there be a better way of doing non-blocking data reads with LuaSocket?
- From: Diego Nehab <diego@...>
- Date: Wed, 12 Nov 2008 04:15:10 -0500 (EST)
Btw, do these examples seem weird?
Either "timeout" or "" would be fine here. Unless the
connection is closed, in which case you should receive the
notification. My choice seems consistent with the behavior
.... blocks forever....
What is it waiting for? Either return a zero-length string, or return
an argument error.
I think this is standard behavior. When and if new data
arrives, it will return you the empty string. Or when the
connection is closed, it will also let you know.