[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: non-blocking sockets with SSL support ?
- From: zhiguo zhao <zhaozg@...>
- Date: Fri, 3 Dec 2010 08:58:30 +0800
Are you know SSL state machine, If you use nonblock tcp connection, You need handle read/write event to match with SSL State(openssl).
I can't remebers clearly. I think below function in ssl can help you
int SSL_want(const SSL *ssl);
int SSL_want_nothing(const SSL *ssl);
int SSL_want_read(const SSL *ssl);
int SSL_want_write(const SSL *ssl);
int SSL_want_x509_lookup(const SSL *ssl);
2010/12/3 Matthew Wild <firstname.lastname@example.org>
It supports non-blocking sockets. LuaSec socket objects have a
On 2 December 2010 18:24, Valerio Schiavoni <email@example.com
> I was wondering if there is any plan to add support for non-blocking sockets
> to SSL.
> It seems that LuaSec (0.4?) doesn't provide such support.
> Am I understanding this correctly ?
:settimeout() method just as normal LuaSocket objects do.