curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl can not stop sending after it received FIN

From: Isaac Boukris via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 12 Apr 2017 20:57:56 +0300

On Apr 12, 2017 8:12 PM, "Gisle Vanem via curl-library" <
curl-library_at_cool.haxx.se> wrote:

Tanyaofeng wrote:

4.We found an issue:
>
> The file server was shut down during sending file data, the curl can’t
> stop sending data after it received FIN from
> Http Proxy Server until file data was sent finished.
>

If this was a serious issue, it would have been fixed
years ago. Use netstat (or Process Explorer etc.) and you probably see
curl's socket is in CLOSE_WAIT state.

Read here on the subject of a "half-open TCP connection":
  https://superuser.com/questions/298919/what-is-tcp-half-
open-connection-and-tcp-half-closed-connection

I was about to make a similar comment, using HTTP 1.0 example (where
sometimes the client closes it write end side after sending the request),
but here it is the server that is closing its end so although it's
perfectly valid from TCP perspectives, perhaps it doesn't make much sense
for HTTP to continue sending the request if the server could not reply.

Regards.

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-04-12