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"); >
I think this has to do with the number of file descriptors limit. Check ulimit -n on your shell, it probably says 1024. In that case you need to increase the limit to a higher value so that your server process can accept more connections. Also it would be a good idea to check what errno says (if the above is true it probably says EMFILE). -jb -- Armor's Axiom: Virtue is the failure to achieve vice. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]