[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luasocket http and coroutines: attempt to yield across metamethod/C-call boundary
- From: Diego Nehab <diego@...>
- Date: Thu, 1 Apr 2010 15:50:39 -0400 (EDT)
Hi,
Take a look at luasocket/etc/check-links.lua. If
that doesn't inspire your implementation, send me private
e-mail. The idea is that you have to replace socket.protect
with a coroutine-friendly implementation. This is done in
luasocket/etc/dispatch.lua. You also have to redefine the
socket creation function used by LuaSocket to use a version
that yields.
Regards,
Diego