Hello!
On Tue, Nov 17, 2015 at 6:52 AM, Ryan Zenker <r...@nodal.org> wrote:
> I'm looking to be able to check if a socket has data without reading from
> it? Is this possible? Ideas for a patch to enable this if not? It seems
> like nginx should be aware if the socket has data to be read.
>
If the LuaSocket library has such a method for peeking, then we can
implement that method in cosockets. Failing that, the "peek" method
name looks good to me. Patches welcome.
I'm curious about your use case though. Why do you need this?
Regards
-agentzh