curl-library
Re: proposed patch to ssluse.c to fix sockets hanging in close_wait forever
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 22 May 2013 23:17:00 +0200 (CEST)
Date: Wed, 22 May 2013 23:17:00 +0200 (CEST)
On Wed, 22 May 2013, Mike Giancola wrote:
> What I've found is that in specific situations, if SSL_write returns 0, curl
> does not recognize the socket as closed (or errored out) and does not report
> it to the application. I believe we need to change the code slightly, to
> check if ssl_write returns 0. If so, treat it as an error - the same as a
> negative return code.
Thanks a lot for this! I've pushed it, and it is now visible here:
https://github.com/bagder/curl/commit/e58d9c87f7833
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-05-22