My server handles incomming SSL connection. If all connections are 
handled within one threads evertyhing works fine. In multithread 
configurations (pool of threads handle connections) SSL_read() fails 
very often when using openssl-1.0.0-beta5 with SSL_MODE_RELEASE_BUFFERS 
flag set.

When flag SSL_MODE_RELEASE_BUFFERS is _not_ set then multithread version 
works fine. I think it may be some race condition in 
SSL_MODE_RELEASE_BUFFERS implementation inside openssl.

Selftest report:
OpenSSL self-test report:

OpenSSL version:  1.0.0-beta5
Last change:      Add new -subject_hash_old and -issuer_hash_old options ...
Options:          enable-threads no-gmp no-jpake no-krb5 no-md2 no-rc5 
no-rfc3779 no-shared no-store no-zlib no-zlib-dynamic static-engine
OS (uname):       Linux chat221 2.6.28-11-server #42-Ubuntu SMP Fri Apr 
17 02:48:10 UTC 2009 i686 GNU/Linux
OS (config):      i686-whatever-linux2
Target (default): linux-elf
Target:           linux-elf
Compiler:         Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 
4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr 
--enable-shared --with-system-zlib --libexecdir=/usr/lib 
--without-included-gettext --enable-threads=posix --enable-nls 
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc 
--enable-mpfr --enable-targets=all --with-tune=generic 
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu 
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)

Test passed.


Please let me know if you need more infomrations.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to