lua-users home
lua-l archive

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


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