From: Nicolas Martyanoff Date: 2010-02-28T01:50:21+09:00 Subject: ssl session shutdown --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I have a ruby program which may reload itself with Kernel#exec. Since exec doesn't close file descriptors, I'm able to keep the socket I use. One of these sockets uses SSL, with the openssl module. I need to shutdown the SSL session before running exec, then restart it. In= C, this is done with: SSL_set_read_ahead(ssl, 0); SSL_shutdown(ssl); SSL_shutdown(ssl); /* For bidirectional shutdown, man SSL_shutdown */ I looked at the openssl library code, and it seens that neither SSL_shutdown nor SSL_set_read_ahead are binded. Is there another way to stop the SSL session in ruby ? Thank you. Regards, --=20 Nicolas Martyanoff http://codemore.org khaelin@gmail.com --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkuJTUcACgkQnpG6nbz56uMlFwCfUcuBnzGL9uPU5lFihtSt8TS3 hqYAmwUvK1LL2zSRdSo4EqQEUy/zYM2I =edf+ -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH--