Brian Candler
5/16/2007 5:22:00 PM
On Thu, May 17, 2007 at 01:35:04AM +0900, jkevinlb@gmail.com wrote:
> Hi,
> I have an Lua SSL client. The first time it connects, all is fine. But
> then, I kill the client. Reconnect it. After a few commands, when more
> datas are sent:
>
> # /usr/lib/ruby/1.8/openssl/buffering.rb:178: warning: error on stack:
> # error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry
> # Exception `OpenSSL::SSL::SSLError' at
> # /usr/lib/ruby/1.8/openssl/buffering.rb:178 - SSL_write:: error:
> 1409F07F:SSL
> # routines:SSL3_WRITE_PENDING:bad write retry
>
> It's complety reproductible. Anybody has an idea ?
Perhaps you need to make a new SSL context for each incoming connection?
After all, each client will start a fresh SSL negotiation.