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
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
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
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
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
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
, 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
(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