summaryrefslogtreecommitdiff
path: root/misc/bidwatcher/patches
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2002-06-12 21:51:28 +0000
committertron <tron@pkgsrc.org>2002-06-12 21:51:28 +0000
commitc29c5dea20c0a257efc139f2bd62d3c4409f427e (patch)
tree9464e89f93c5cb0d2d124b3a4de60322b2dc8474 /misc/bidwatcher/patches
parente247d1448f06150794fe25ec57fef4a095188608 (diff)
downloadpkgsrc-c29c5dea20c0a257efc139f2bd62d3c4409f427e.tar.gz
"bidwatcher" tries to use HTTP/1.1 but is not able to handle persistant
connections. Use "Connection: close" in HTTP request headers to avoid network timeout caused by this bug. Bump version number to 1.3.4nb2.
Diffstat (limited to 'misc/bidwatcher/patches')
-rw-r--r--misc/bidwatcher/patches/patch-aa13
1 files changed, 11 insertions, 2 deletions
diff --git a/misc/bidwatcher/patches/patch-aa b/misc/bidwatcher/patches/patch-aa
index ce07ffcefce..078a70592ba 100644
--- a/misc/bidwatcher/patches/patch-aa
+++ b/misc/bidwatcher/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.7 2002/06/12 13:55:06 tron Exp $
+$NetBSD: patch-aa,v 1.8 2002/06/12 21:51:28 tron Exp $
--- netstuff.cpp.orig Thu Jun 6 03:52:08 2002
-+++ netstuff.cpp Wed Jun 12 15:51:57 2002
++++ netstuff.cpp Wed Jun 12 23:46:36 2002
@@ -247,6 +247,8 @@
fd_set fds;
struct timeval tm;
@@ -11,3 +11,12 @@ $NetBSD: patch-aa,v 1.7 2002/06/12 13:55:06 tron Exp $
GTimer * time_since_start=g_timer_new();
g_timer_start(time_since_start);
+@@ -330,7 +332,7 @@
+ }
+
+ // send our request for the web page.
+- sprintf(lineBuff, "GET %s HTTP/1.1\r\nHost: %s\r\nUser-Agent: bidwatcher\r\n%s\r\n", url->url, url->hostinfo->h_name, cookie);
++ sprintf(lineBuff, "GET %s HTTP/1.1\r\nConnection: close\r\nHost: %s\r\nUser-Agent: bidwatcher\r\n%s\r\n", url->url, url->hostinfo->h_name, cookie);
+
+ if (send(socketID, lineBuff, strlen(lineBuff), 0) < 0) {
+ #ifdef DEBUG_NETWORK