lua-users home
lua-l archive

Re: using Copas with LuaSec, non-blocking ssl

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


On 2014年10月23日 06:38:45 +0000
Thijs Schreijer <thijs@thijsschreijer.nl> wrote:
> Does anyone have (a pointer to) some examples implementing this (copas with luasec, or just luasec used non-blocking)?
> 
I remember it being surpisingly simple to get LuaSec and Copas to play
nice. In short, just call ssl.wrap() inside your handler function.
I needed it working for a project once, and it looks like my patch was
applied:
https://github.com/lipp/tango/blob/master/tango/server/copas_socket.lua
-- 
Aaron B. <aaron@zadzmo.org>

AltStyle によって変換されたページ (->オリジナル) /