[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: using Copas with LuaSec, non-blocking ssl
From:       "Aaron B." <aaron () zadzmo ! org>
Date:       2014-10-23 14:29:43
Message-ID: 20141023102943.7961326a205b6a7856803ceb () zadzmo ! org
[Download RAW message or body]

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>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic