AFAIK, tcp read can return Zero, as numbytes read, and does not
mean
than the fd is invalidated. I think you should use SSL_received_shutdown
or something
which checks if any close has been initiated by the
server..
Attempting write when a close was received will result in
sigpipe..
-----Original Message-----If the server returns an error my client does not shut down the connection. I think i have to use SSL_Read and then if the return value is less than or equal to 0 then i just break. The problem is that when i use SSL_Read then my SSL_write does not seem to work.......why is that.........or is there a simpler way to check if the server has closed the connection?.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of michael Dorrian
Sent: Thursday, April 06, 2006 8:52 AM
To: openssl-users@openssl.org
Subject: closing client connection problem
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.