diff options
author | wollman <wollman@FreeBSD.org> | 1997-07-25 19:35:44 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1997-07-25 19:35:44 +0000 |
commit | 021417e0de807dffe85f2ebec2dd9b568d4e545d (patch) | |
tree | 92d27f5303ecd82c9c43c4b36dda876cb15a0ca5 /usr.bin/fetch/http.c | |
parent | cd0c23d19a3bde32cd2e62400904f9074c24db05 (diff) | |
download | FreeBSD-src-021417e0de807dffe85f2ebec2dd9b568d4e545d.zip FreeBSD-src-021417e0de807dffe85f2ebec2dd9b568d4e545d.tar.gz |
Provide a new `-b' flag to work around some broken HTTP/TCP implementations
that can't deal with a half-closed connection.
Diffstat (limited to 'usr.bin/fetch/http.c')
-rw-r--r-- | usr.bin/fetch/http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c index fa445e0..222c6ea 100644 --- a/usr.bin/fetch/http.c +++ b/usr.bin/fetch/http.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: http.c,v 1.5 1997/03/05 18:57:16 fenner Exp $ + * $Id: http.c,v 1.6 1997/03/06 20:01:32 jmg Exp $ */ #include <sys/types.h> @@ -483,7 +483,7 @@ http_retrieve(struct fetch_state *fs) n = 0; msg.msg_control = 0; msg.msg_controllen = 0; - msg.msg_flags = MSG_EOF; + msg.msg_flags = fs->fs_linux_bug ? 0 : MSG_EOF; #define addstr(Iov, N, Str) \ do { \ @@ -575,7 +575,7 @@ retry: fs->fs_status = "sending request message"; setup_sigalrm(); alarm(timo); - if (sendmsg(s, &msg, MSG_EOF) < 0) { + if (sendmsg(s, &msg, fs->fs_linux_bug ? 0 : MSG_EOF) < 0) { warn("sendmsg: %s", https->http_hostname); fclose(remote); return EX_OSERR; |