cURL / Mailing Lists / curl-library / Single Mail


Re: transfer closed with outstanding read data remaining

From: Sunny Khatri <>
Date: Wed, 16 Oct 2013 13:07:51 -0700


Looking at the packets, receiver sends out a TCP ZeroWindow (followed by
some window update). Server sends out the next packet with FIN (causing the
close connection). So seems like the issue is with the rate at which data
is transferred by the server and the rate at which it's consumed by the
client and the TCP receive buffer size. Apart from changing the TCP window
size, does libcurl provides anything to manage this sort of stuff ? Or if
there is any other potential solutions that could be used to resolve this


On Tue, Oct 15, 2013 at 12:06 PM, Daniel Stenberg <> wrote:

> On Mon, 14 Oct 2013, Sunny Khatri wrote:
> Please don't top-post, it makes following this thread totally confusing
> and hard to figure out to what you're referring to here...
> After some more debugging, I see "Closing connection #0". I think it
>> might be related to this error. Does it has to do anything with the
>> keep-alive timeout or something else ?
> That's just the message libcurl outputs when it decided to close its end
> of the connection, which very well could be the result of the fact that the
> server already closed it from its end...
> --
> /
> ------------------------------**------------------------------**-------
> List admin:**listinfo/curl-library<>
> Etiquette:**etiquette.html<>

List admin:
Received on 2013-10-16