I have an issue and I'm not quite sure where OpenSSL exactly fits in to it, but I figured I'd give it a shot and see if anybody had a similar experience or any possible solutions.
I have an Apache module (mod_gsoap). Inside of the request handler I call the Win32 API _beginthread (this function is supposed to implicitly called _endthread on exit, but I do it inside of my thread anyway). This is a simplified case because our gsoap server is actually where we want to spawn the thread, but the same thing appears to happen even in the mod_gsoap handler and not in our own module. When I run Apache and have the module handle a single request do a _beginthread then the thread handle count increases by one. The thread is no longer running (judging by the thread count for the process), but the handle is still there using handle.exe. I do it again and the thread handle count keeps increasing. I know the thread handle relates to the thread that was launched from the thread id of it. The strange part is that when I comment out the line: LoadModule ssl_module modules/mod_ssl.so Then it performs fine. The thread handle count remains consistent. The strange part is the request doesn't even have to be over SSL, if I just have the module loaded the problem occurs. I.e. we normally do everything over https, but if I move to just http and still load the module the problem still occurs. I'll admit, I'm not an Apache or OpenSSL expert, so I could easily be missing something, but I've tried numerous ways of creating threads and moved it in to different parts of the module to no avail. Any help or input would be greatly appreciated. Thanks. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]