[svn] Document reasoning behind CLOSE_INVALIDATED more accurately.

This commit is contained in:
hniksic 2005-07-02 06:23:54 -07:00
parent 79a8def8c8
commit d7ddbd9720

View File

@ -1892,8 +1892,9 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
xfree_null (type); xfree_null (type);
if (head_only) if (head_only)
/* Pre-1.10 Wget used CLOSE_INVALIDATE here. Now we trust the /* Pre-1.10 Wget used CLOSE_INVALIDATE here. Now we trust the
servers not to send body in response to a HEAD request. If servers not to send body in response to a HEAD request, and
you encounter such a server (more likely a broken CGI), use those that do will likely be caught by test_socket_open.
If not, they can be worked around using
`--no-http-keep-alive'. */ `--no-http-keep-alive'. */
CLOSE_FINISH (sock); CLOSE_FINISH (sock);
else if (keep_alive && skip_short_body (sock, contlen)) else if (keep_alive && skip_short_body (sock, contlen))