Re: SSL_accept hangs

2008-03-21 Thread Md Lazreg
On Thu, Mar 20, 2008 at 9:29 PM, David Schwartz <[EMAIL PROTECTED]> wrote: > > To Md Lazreg: > > I think I found it. I think you did find it. Now I am able to process more than 1000 clients without hanging. This is great. Thanks a lot for your expertise.

RE: SSL_accept hangs

2008-03-20 Thread David Schwartz
To Md Lazreg: I think I found it. ready_sockets = ::select(m_max_socket + 1, rfds, 0, 0,&tv); if (ready_sockets > 0) { if (FD_ISSET(s->get_sock(),p->get_rfds())) { new_s->set_non_blocking(true); /* GAK */ if (s->accept(new_s)) {

Re: SSL_accept hangs

2008-03-20 Thread Md Lazreg
On Thu, Mar 20, 2008 at 6:51 PM, David Schwartz <[EMAIL PROTECTED]> wrote: > > ready_sockets = ::select(m_max_socket + 1, rfds, 0, 0,&tv); > if (ready_sockets > 0) > { > if (FD_ISSET(s->get_sock(),p->get_rfds())) > { >new_s->set_non_blocking(true); >

RE: SSL_accept hangs

2008-03-20 Thread David Schwartz
> Well, that is not true and I am sorry I did not give > you the full code as it is quite complicated but the > snipet you see above is called after a new connection > is already accepted. So I have an outer loop that does > a select and once a new connection is detected and accepted > without

Re: SSL_accept hangs

2008-03-20 Thread Md Lazreg
Hi David, On Thu, Mar 20, 2008 at 12:38 PM, David Schwartz <[EMAIL PROTECTED]> wrote: > > > Hi David, > > > My code looks like this: > > 1 while(1) > 2 { > 3r = SSL_accept(m_ssl); > 4if (r > 0) > 5{ > 6 break; > 7

RE: SSL_accept hangs

2008-03-20 Thread David Schwartz
> Hi David, > My code looks like this: 1 while(1) 2 { 3r = SSL_accept(m_ssl); 4if (r > 0) 5{ 6 break; 7} 8r = ssl_retry(r); 9if ( r <= 0) 10 { 11

Re: SSL_accept hangs

2008-03-20 Thread Md Lazreg
Hi David, My code looks like this: 1 while(1) 2 { 3r = SSL_accept(m_ssl); 4if (r > 0) 5{ 6 break; 7} 8r = ssl_retry(r); 9if ( r <= 0) 10 { 11

RE: SSL_accept hangs

2008-03-20 Thread David Schwartz
> Hi, > I have setup an SSL server that works fine up to > 400 connected clients. > When I try to have more then 400 clients, then my server hangs in the > SSL_accept call This happens very randomly, sometimes beyond 1000 > connected clients... > The server is dead once this happen and no o

Re: SSL_accept hangs

2008-03-20 Thread Md Lazreg
Thanks Steve. If this helps anyone fixing this issue here is the backtrace once SSL_accept hangs: SSL_accept ssl23_accept ssl23_get_client_hello ssl23_read_bytes BIO_read sock_read __read_nocancel Thanks On Thu, Mar 20, 2008 at 8:22 AM, Steve West <[EMAIL PROTECTED]> wrote:

SSL_accept hangs

2008-03-19 Thread Md Lazreg
Hi, I have setup an SSL server that works fine up to 400 connected clients. When I try to have more then 400 clients, then my server hangs in the SSL_accept call This happens very randomly, sometimes beyond 1000 connected clients... The server is dead once this happen and no other client can