[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaSocket nonblocking receive() semantics
- From: Matthew Wild <mwild1@...>
- Date: Thu, 15 Mar 2012 19:40:40 +0000
On 15 March 2012 19:19, Flemming Madsen <lua@themadsens.dk> wrote:
> Speaking of LuaSocket .. I have a small request ..
>
> Could we have receive() behavior ala Posix read().
>
> Ie. after select() reports a steam readable, the next receive() can be
> specified non-blocking, no matter the number of requested bytes, and the
> number of actually received bytes is returned.
>
> (A new function, negative count dor receive(), whatever)
>
Are you missing conn:settimeout(0)? If not, do you have a test case
where receive() blocks?
Regards,
Matthew