Re: Client Dies and server SSL_state still SSL_ST_OK

2005-12-06 Thread Katie Lucas
On Tue, Dec 06, 2005 at 10:28:09AM -0500, Perry L. Jones wrote: Hello, I want to be able to handle unclean closing of an SSL socket. I have a client server applications and if the client dies for some reason I want to be able to check the SSL connection on the server side and then clean

RE: Client Dies and server SSL_state still SSL_ST_OK

2005-12-06 Thread Usman Riaz
Hello, This probably is more of a TCP problem then it is of OpenSSL. You might want to look at SO_KEEPALIVE option for the TCP socket. Hope this helps, Regards, Usman. Hello, I want to be able to handle unclean closing of an SSL socket. I have a client server applications and if the

Re: Client Dies and server SSL_state still SSL_ST_OK

2005-12-06 Thread Perry L. Jones
So is it ok to uses socket ioctl functions on the socket file descriptor to figure out the socket is closed? I have seen some BIO_ioctl function do I need to uses those instead to be more OpenSSL correct? Thanks this was very informative. Perry Katie Lucas wrote: On Tue, Dec 06, 2005 at

Re: Client Dies and server SSL_state still SSL_ST_OK

2005-12-06 Thread Perry L. Jones
Dr. Stephen Henson wrote: On Tue, Dec 06, 2005, Perry L. Jones wrote: So is it ok to uses socket ioctl functions on the socket file descriptor to figure out the socket is closed? As long as you don't do anything which will affect any subsequent I/O (e.g. reading or writing on the