Re: Fwd: Re: pf: BAD state happens often with portsnap fetch update



Chuck Swiger wrote:
FYI, if you pass a:

Connection: keep-alive

...header in the request, Squid will not close the client->proxy
connection and you ought to be able to re-use it to make additional
requests.

In HTTP/1.1, connections are assumed to be persistent unless declared otherwise.

PS: Squid "supports HTTP/1.0 persistent connections", from which the HTTP/1.1
style keepalives derive-- and quick testing suggests these persistent
connections work with either HTTP/1.0 or 1.1 specified in the request.

Grr. I hate adding workarounds to improve compatibility with hopelessly
antique code (seriously, why doesn't squid support http/1.1 yet?), but I
guess I'll make phttpget emit a completely bogus "Connection: Keep-Alive"
header to go along with its HTTP/1.1 requests.

Colin Percival
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Can not get urllib.urlopen to work
    ... > the original request. ... If the referrer was correct, ... I'll read the Location header and go there, if you want to set a cookie ... Connection: close ...
    (comp.lang.python)
  • Re: Fwd: Re: pf: BAD state happens often with portsnap fetch update
    ... connection and you ought to be able to re-use it to make additional ... connections work with either HTTP/1.0 or 1.1 specified in the request. ... antique code (seriously, why doesn't squid support http/1.1 yet?), ... header to go along with its HTTP/1.1 requests. ...
    (freebsd-current)
  • Re: Size of a remote URL
    ... > between the IE request and mine ... > Connection: close ... header is provided. ... to the first URL you gave above. ...
    (comp.lang.python)
  • Re: ModPerl 1
    ... Wget schickt einen anderen Request als Firefox (zumindest der ... User-Agent header ist per default anders) und somit kann auch die Antwort ... Connection: close ...
    (de.comp.lang.perl.cgi)
  • [REVS] Forging HTTP Request Headers with Flash ActionScript
    ... Forging HTTP Request Headers with Flash ActionScript ... A similar syntax will send POST request (with the same header, ...
    (Securiteam)