[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] bug in socket reuse when using wget -c
From: |
Iru Cai |
Subject: |
[Bug-wget] bug in socket reuse when using wget -c |
Date: |
Fri, 8 Dec 2017 23:55:08 +0800 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
Hello wget developers,
I found an issue when using `wget -c`, as in:
https://github.com/mholt/caddy/issues/1965#issuecomment-349220927
By checking out the wget source code, I can confirm that it doesn't
drain the response body when it meets a 416 Requested Range Not
Satisfiable, and then the socket will be reused for the second request
(http get 2.dat in this case). When parse its response, it will
encounter the first response's body, so it failed to get the correct
response header. This is why you get a blank response header.
Hope this can be fixed.
Thanks,
Iru
signature.asc
Description: PGP signature
- [Bug-wget] bug in socket reuse when using wget -c,
Iru Cai <=