curl / Mailing Lists / curl-library / Single Mail


Re: curl can not stop sending after it received FIN

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

On Apr 12, 2017 8:12 PM, "Gisle Vanem via curl-library" <> 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":

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.


Received on 2017-04-12