[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: using Copas with LuaSec, non-blocking ssl
- From: "Aaron B." <aaron@...>
- Date: Thu, 23 Oct 2014 10:29:43 -0400
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>