FWIW I coded up a luasec compatible api as part of fend:
https://github.com/chatid/fend/blob/master/ssl.lua
It should be easy enough to port over to nginx...
On 3 September 2013 12:56, <av...@adallom.com> wrote:
> Well, it seems that unfortunately, luasec is using IO operations on its own
> (it requires the fd of the socket that it wraps), so it would not be a good
> idea using it (would block Nginx).
> Does anyone know of another implementation?
>
>
> On Tuesday, September 3, 2013 2:57:43 PM UTC+3, avi...@adallom.com wrote:
>>
>> Hello!
>>
>> I've seen that adding SSL support to the Lua API is in the TODO list for
>> the Lua Nginx module.
>> Can anyone specify an estimate regarding when this will be implemented?
>>
>> In addition, I thought of using luasec to wrap the cosocket object.
>> Wouldn't it be possible and integrate well with Nginx (as all send/receive
>> actions will still be performed through the Nginx reactor).
>> What are the disadvantages of this method of implementing SSL cosockets?
>>
>> Best regards,
>> Aviram.