From: Bill Rebey <[EMAIL PROTECTED]> Bill.Rebey> I based my product on OpenSSL with the understanding that Bill.Rebey> OpenSSL was multi-thread safe. It has since been brought Bill.Rebey> to my attention that OpenSSL in fact NOT thread safe and Bill.Rebey> can not read and write the same SSL from two different Bill.Rebey> threads. True, that aspect of OpenSSL is lacking... Bill.Rebey> Does anyone know how I can fix the OpenSSL code so that Bill.Rebey> this works? Does anyone even know what things in the SSL Bill.Rebey> are thread-Unsafe so that I might know where to begin Bill.Rebey> looking? One quick if not easy way to deal with it is to make your own wrappers around SSL_read() and SSL_write(), using SSL-specific locks. You can associate the lock handles with the SSL structures through the ex_data member. Doing it directly in OpenSSL is bulky at best right now, and also needs to be handled in a very general way, keeping in consideration that on Windows, handles are a limited resource. I've some ideas on how to go around that with an OpenSSL-specific lock implementation (I've mentioned it before, I think). -- Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED] Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47 Redakteur@Stacken \ SWEDEN \ or +46-709-50 36 10 Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Software Engineer, Celo Communications: http://www.celocom.com/ Unsolicited commercial email is subject to an archival fee of $400. See <http://www.stacken.kth.se/~levitte/mail/> for more info. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Does anyone know how to fix Multithreading??
Richard Levitte - VMS Whacker Tue, 27 Jun 2000 09:16:00 -0700
- Does anyone know how to fix Multithreading?? Bill Rebey
- RE: Does anyone know how to fix Multith... Richard Levitte - VMS Whacker
- RE: Does anyone know how to fix Mul... Erik
- RE: Does anyone know how to fix... Richard Levitte - VMS Whacker
- RE: Does anyone know how to fix Multith... Bill Rebey
- Does anyone know how to fix Multith... Lenny Foner
- Re: Does anyone know how to fix... Taral
- Re: Does anyone know how to fix... Taral
- Re: Does anyone know how to... Richard Levitte - VMS Whacker
- Re: Does anyone know how to fix... Taral
- RE: Does anyone know how to fix Mul... Richard Levitte - VMS Whacker