Hello,
I found a problem in Squid-1.0.9: When using a browser that sends
the "Connection: Keep-Alive" option, that line is passed to the WWW server
from where Squid retrieves the document. As Squid doesn't handle keep-alives
the server keeps that connection open for a while until times out. I modified
Squid to remove that line from the header sent to the server. Performance
with a local Apache-1.1.1 server increases significantly.
Javier Achirica
diff -c src.orig/http.c src/http.c
*** src.orig/http.c Fri Aug 23 00:26:55 1996
--- src/http.c Fri Aug 23 20:38:28 1996
***************
*** 601,607 ****
memset(ybuf, '\0', SM_PAGE_SIZE);
sprintf(ybuf, "%s %s %s", t, VIA_PROXY_TEXT, version_string);
t = ybuf;
! }
if (len + (int) strlen(t) > buflen - 10)
continue;
strcat(buf, t);
--- 601,608 ----
memset(ybuf, '\0', SM_PAGE_SIZE);
sprintf(ybuf, "%s %s %s", t, VIA_PROXY_TEXT, version_string);
t = ybuf;
! } else if (strncasecmp(t, "Connection:", 11) == 0)
! continue;
if (len + (int) strlen(t) > buflen - 10)
continue;
strcat(buf, t);
Received on Fri Aug 23 1996 - 11:53:52 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:32:51 MST