RE: How to re-use a socket with a new SSL session?

2009-09-14 Thread Andrew Sumner
Darryl, Thanks for your detailed suggestions, especially: > It may also be helpful to call SSL_set_read_ahead(ssl, 0) to disable > readahead optimization just before you issue the SSL_shutdown(ssl). For some reason, adding that line before the shutdowns made all the difference - it now works

RE: How to re-use a socket with a new SSL session?

2009-09-13 Thread Andrew Sumner
Hi Viktor, > Initially, does your client build an SSL connection over an already > (TCP) established connection passed to it as a file descriptor? yes. > Initially, does your server accept an SSL connection over an already > (TCP) established connection passed to it as a file descriptor? yes.

RE: How to re-use a socket with a new SSL session?

2009-09-10 Thread Andrew Sumner
Hi Victor, > You should be able to cleanly shut-down SSL on both sides, and > resume in a new process, provided the application protocol has > a clean session termination phase. > For example, implementing an application level "STOPTLS" verb that > the initiator may request and the responder must

RE: How to re-use a socket with a new SSL session?

2009-09-10 Thread Andrew Sumner
Hi David, Thanks, you've saved me from tons of frustration and wasted time chasing an unworkable solution. The proxy idea sounds very promising, I'll check it out. cheers Andrew

How to re-use a socket with a new SSL session?

2009-09-10 Thread Andrew Sumner
I've got a situation where a listener on the server receives a connection then the client sends a login packet. The server creates a new "worker" process as the logged in user and passes it the socket ID. The worker process takes over communication with the client (which is unaware of what's happ