lua-users home
lua-l archive

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


On Thu, 23 Oct 2014 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>