----- Original Message ----- From: Lutz Jaenicke <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 05, 2001 4:29 AM Subject: Re: SSL reconnect problem > On Thu, Jul 05, 2001 at 10:38:09AM +0800, Ng Ying Chyn wrote: > > The SSL client is able to connect for the first time, but when the client > > reconnects I get the following error during SSL_accept(): > > > > 10190:error:140D9115:SSL routines:SSL_GET_PREV_SESSION: > > session id context uninitialized:ssl_sess.c:278: > > man SSL_CTX_set_session_cache_mode > man SSL_CTX_set_session_id_context > > > It seems that when I disable session cache using: > > SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_OFF) > > the problem actually goes away, but I get a new problem:- > > SSL_free() gives me a "segmentation fault". Of course, I can just > > ignore SSL_free() but I guess it will cause memory leaks in the long run. > > This sounds like a bug. I have just tried reproducing it by modifying > openssl s_server and did not see it. > > > I tried tricks like using SSL_get1_sesssion() to increase the reference count > > but it didn't help. > > This problem may be caused by SSL_get_session()/SSL_SESSION_free() > interaction with the session cache. However: not caching sessions is > the default for clients, so a fundamental bug in the session handling > should have popped up long ago.. > If you can reproduce the problem and think its a bug inside OpenSSL, > you may consider supplying the shortest possible example to reproduce > this problem. > > Best regards, > Lutz > -- > Lutz Jaenicke [EMAIL PROTECTED] > BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/ > Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129 > Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153 > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]