bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] [Bug-Wget] Wget closes connection despite Keep-Alive


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] [Bug-Wget] Wget closes connection despite Keep-Alive
Date: Wed, 05 Nov 2014 11:20:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi Darshit,

Darshit Shah <address@hidden> writes:

> * Off-topic:
> Looking at the condition, there's one comparison that we can avoid:
> hs->restval > 0
> contlen >= 0
> hs->restval >= contlen
>
> In this case, hs->restval > 0 is redundant and un-needed.

good catch, we can surely drop the first comparison.

> The reason why I came across this was that I needed Wget to maintain a
> persistent connection, and that was exactly what the server
> expected. However, Wget went ahead and closed the connection. This
> *missing feature* was precisely what I was looking for.
>
> Also, this behaviour will become a bug with SPDY and HTTP/2 since the
> server will try to use the open connection to suggest other resources
> which the client may ask for.
>
>
> I'm waiting for Giuseppe's views on this. Else, I'll split the
> condition into two parts, with the first one called CLOSE_FINISH
> instead of CLOSE_INVALIDATE

feel free to split it and leave the connection open on a
HTTP_STATUS_RANGE_NOT_SATISFIABLE.

Regards,
Giuseppe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]