diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-11 20:16:45 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-11 20:16:45 +0100 |
commit | a6f8651911716d1d1624712eb19e4f3608767c7e (patch) | |
tree | cdb9b0d3ee0d9c194f792fc819e3393c42a2d2ea /printutils/Kbuild.src | |
parent | 098b713c7b5b22fc60b606be97da431eaedc6639 (diff) | |
download | busybox-a6f8651911716d1d1624712eb19e4f3608767c7e.tar.gz |
wget: fix for brain-damaged HTTP servers. Closes 9471
write(3, "GET / HTTP/1.1\r\nUser-Agent: Wget\r\nConnection: close\r\n\r\n", 74) = 74
shutdown(3, SHUT_WR) = 0
alarm(900) = 900
read(3, "", 1024) = 0
write(2, "wget: error getting response\n", 29) = 29
exit(1)
The peer simply does not return anything. It closes its connection.
Probably it detects wget closing its writing end: shutdown(3, SHUT_WR).
The point it, closing write side of the socket is _valid_ for HTTP.
wget sent the full request, it won't be sending anything more:
it will only receive the response, and that's it.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'printutils/Kbuild.src')
0 files changed, 0 insertions, 0 deletions