On Thu, 2007-11-22 at 11:19 -0800, Arsai wrote: > I have strange behaviour of my multithread ssl server. I've tried to localize > my error and understood that client can connect to server only 1022 times, > after that connection can not be established. Now I switched off all my > client-server data > communications. Client only connects to server and disconnects after that. > > My server suspends at the beginning of 1023 iteration on that string: > if( BIO_do_accept( m_acceptConnector ) <= 0 ) > throw openSSLException("Error in accepting connection"); > > My server does not throw openSSLException exception and on another hand > program does > not go to next piece of code ( I've logged messages) > > Ways I've tried to solve the problem: > 1) I looked thought memory usage of client and server and it seems all ok. > Neither server nor client > do not show memory grow while connections. > 2) I supposed my multithread implementation was incorrect, Do you have thread callbacks initialized for pthread functionality ? You may also try to connect to your process with: # strace -v -f -p <SERVER_PID> to look what happens on server what your client connects.
Best regards, -- Marek Marcola <[EMAIL PROTECTED]> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]