I compiled and tried a simple server code listed for openssl server on http://www.metalshell.com/view/source/108/.  

The test system is running Linux Fedora Core 2 with openssl 0.9.7a.  The server code compiles and runs fine.  However, when I created a test client that continuously connect to the server to send request and then disconnect, I noticed that the "sslserver" process is leaking memory.  I also tried adding ERR_remove_state at end of each thread (as suggested by someone on this forum before) right before pthread_exit but the situation is not improved.

Have you guys seen the same problem before when using threads?  Would upgrading the openssl library to newer version help?  (I couldn't find any recent changes relate to memory leak since 0.9.7a on the OpenSSL web site)
 
any information will be greatly appreciated!
 


Sent from the OpenSSL - User forum at Nabble.com:
memory leak while using 0.9.7a?

Reply via email to