RE: Socket left in CLOSE_WAIT state...

2010-04-21 Thread Saju Paul
ubject: Re: Socket left in CLOSE_WAIT state... -- Original Message -- To: (openssl-users@openssl.org) From: Stuart Weatherby (stuart_weathe...@yahoo.ca) Subject: Re: Socket left in CLOSE_WAIT state... Date: 22/4/2010 5:18:48a > Shutdown disables the ability to read, write (or

Re: Socket left in CLOSE_WAIT state...

2010-04-21 Thread Stuart Weatherby
hew Allen To: openssl-users@openssl.org Sent: Wed, April 21, 2010 4:00:10 PM Subject: Re: Socket left in CLOSE_WAIT state... -- Original Message -- To:  (openssl-users@openssl.org) From: Stuart Weatherby (stuart_weathe...@yahoo.ca) Subject: Re: Socket left in CLOSE_WAIT state... Date: 2

Re: Socket left in CLOSE_WAIT state...

2010-04-21 Thread Matthew Allen
-- Original Message -- To: (openssl-users@openssl.org) From: Stuart Weatherby (stuart_weathe...@yahoo.ca) Subject: Re: Socket left in CLOSE_WAIT state... Date: 22/4/2010 5:18:48a > Shutdown disables the ability to read, write (or both) on a > socket. However, shutdown() do

Re: Socket left in CLOSE_WAIT state...

2010-04-21 Thread Stuart Weatherby
, April 21, 2010 2:18:27 AM Subject: Socket left in CLOSE_WAIT state... Hi, My code leaves sockets in the CLOSE_WAIT state after I free the SSL connection (running on windows XP with  OpenSSL 0.9.8e). After I'm done with the connection I call SSL_shutdown and SSL_free, but that doesn't

Re: Socket left in CLOSE_WAIT state...

2010-04-21 Thread Darryl Miles
Matthew Allen wrote: if (Ssl) { SSL_shutdown(Ssl); SSL_free(Ssl); } Yes as the other writer says, you may need to close out the BIO (which is the thing holding the socket descriptor/handle). So the "Bio" object you created you may need to clean

RE: Socket left in CLOSE_WAIT state...

2010-04-21 Thread Saju Paul
Looks like it needs a BIO_free_all(bio) or something similair. -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org]on Behalf Of Matthew Allen Sent: Wednesday, April 21, 2010 5:18 AM To: openssl-users@openssl.org Subject: Socket left in

Socket left in CLOSE_WAIT state...

2010-04-21 Thread Matthew Allen
Hi, My code leaves sockets in the CLOSE_WAIT state after I free the SSL connection (running on windows XP with OpenSSL 0.9.8e). After I'm done with the connection I call SSL_shutdown and SSL_free, but that doesn't close the socket on the client side. My code's probably wrong, so tell me what I