Home » U++ Library support » U++ MT-multithreading and servers » WebSSL memory leak problem.
Re: WebSSL memory leak problem. [message #26637 is a reply to message #26629] |
Mon, 17 May 2010 18:00 |
|
koldo
Messages: 3372 Registered: August 2008
|
Senior Veteran |
|
|
phirox wrote on Mon, 17 May 2010 14:11 | I've posted about the WebSSL memory leak before. In short, it is this line:
CRYPTO_set_mem_functions(SSLAlloc, SSLRealloc, SSLFree);
If you comment it out there shouldn't be a memory leak warning anymore, even though it is actually still there.
For a permanent fix, all the correct openssl unload functions should be called. I will check it out myself later, but for those in a hurry; see http://www.openssl.org/support/faq.html#PROG13 for more information.
|
Hello phirox
This is a really old U++ bug ! .
You discovered it in 2008 and it is not solved yet.
I found the same bug some months ago as I posted here: http://www.ultimatepp.org/forum/index.php?t=msg&goto=257 72&
It is an OpenSSL cleanup problem.
Other way to solve it would be to do this in Web/SSL/util.cpp:
INITBLOCK {
Socket::Init();
CRYPTO_set_mem_functions(SSLAlloc, SSLRealloc, SSLFree);
SSL_load_error_strings();
//SSL_library_init(); //SOLUTION TO MEMORY LEAK !!
}
Best regards
IƱaki
|
|
|
Goto Forum:
Current Time: Mon Jun 10 11:41:43 CEST 2024
Total time taken to generate the page: 0.01169 seconds
|