Re: SSL3_accept makes Server stuck

2008-08-28 Thread Darryl Miles
Jinsong Du wrote: I have a simple server using blocked socket and OpenSSL, its only function is for user registering an account. When an user connect to this server, it spawns a child process to handle the request. I found sometime child processes got stuck. The problem here is that what if 2

RE: SSL3_accept makes Server stuck

2008-08-28 Thread David Schwartz
Jinsong Du wrote: I have a simple server using blocked socket and OpenSSL, its only function is for user registering an account. When an user connect to this server, it spawns a child process to handle the request. I found sometime child processes got stuck. The problem here is that

Re: SSL3_accept makes Server stuck

2008-08-07 Thread Du, Jinsong
Kyle is right, I didn't set SO_KEEPALIVE on the socket in my server. Do I have to set SO_KEEPALIVE to avoid this situation in server side? Since I use select in the main loop to deal with time out situation, is there any other way to prevent OpenSSL library to wait for reading a socket

Re: SSL3_accept makes Server stuck

2008-08-07 Thread Kyle Hamilton
Put your sockets into nonblocking mode (with fcntl()). If they would block and you try to read them, the system call will return with EWOULDBLOCK. Other than that, you can set an alarm; a signal will interrupt a system call. You might wish to set your signal handler to be a function that resets

Re: SSL3_accept makes Server stuck

2008-08-05 Thread Du, Jinsong
hint towards the problem. Let us know what you get, and we might be able to help you further. ~ Urjit - Original Message - From: Jinsong Du [EMAIL PROTECTED] To: openssl-users@openssl.org Sent: Friday, August 01, 2008 4:07 AM Subject: SSL3_accept makes Server stuck (I sent

Re: SSL3_accept makes Server stuck

2008-08-05 Thread Kyle Hamilton
be able to help you further. ~ Urjit - Original Message - From: Jinsong Du [EMAIL PROTECTED] To: openssl-users@openssl.org Sent: Friday, August 01, 2008 4:07 AM Subject: SSL3_accept makes Server stuck (I sent the following post through Google Group, but it seems not appear

Re: SSL3_accept makes Server stuck

2008-08-03 Thread Urjit Gokhale
, 2008 4:07 AM Subject: SSL3_accept makes Server stuck (I sent the following post through Google Group, but it seems not appear on the maillist) Hi all, I have a simple server using blocked socket and OpenSSL, its only function is for user registering an account. When an user connect

SSL3_accept makes Server stuck

2008-08-01 Thread Jinsong Du
(I sent the following post through Google Group, but it seems not appear on the maillist) Hi all, I have a simple server using blocked socket and OpenSSL, its only function is for user registering an account. When an user connect to this server, it spawns a child process to handle the request. I