When using portsnap/freebsd-update with a proxy configured (via HTTP_PROXY env variable), phttpget opens a new connections for every file fetched, ignoring "Connection: keep-alive" Fix: I made a patch for phttpget: --- /usr/src/usr.sbin/portsnap/phttpget/phttpget.c 2009-04-15 00:14:26.000000000 -0300 +++ /root/src/portsnap/phttpget/phttpget.c 2009-05-08 11:03:36.000000000 -0300 @@ -520,6 +520,17 @@ continue; } + if(env_HTTP_PROXY && strncasecmp(hln, "Proxy-Connection:", 17) == 0) { + hln += 17; + if (strcasestr(hln, "close") != NULL) + pipelined = 0; + if (strcasestr(hln, "Keep-Alive") != NULL) + keepalive = 1; + + /* Next header... */ + continue; + } + /* Check for "Content-Length:" header */ if (strncasecmp(hln, "Content-Length:", 15) == 0) { hln += 15; How-To-Repeat: Using portsnap/freebsd-update and doing sockstat -4c | grep phttpget
Responsible Changed From-To: freebsd-bugs->cperciva Over to maintainer.
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped