Delay when fetching a page without Content-Length

2007-03-31 Thread Adam Sjøgren
In my experiments, I've run into a long(ish) delay when I ask for a
url behind http auth:

 $ time wget -S http://www.koldfront.local/stats/
 [...¹]
 real0m16.799s
 [...]

Going directly to Apache:

 $ time wget -S http://www.koldfront.local:8080/stats/
 [...²]
 real0m0.013s
 [...]

I have previously observed such delays on pages where I didn't return
a Content-Length header (or, embarrassingly, did it wrong) - is this
related, or should it just work when Apache sends 'Transfer-Encoding:
chunked'?


(I have configured Varnish to 'pass' if there is an WWW-Authenticate
or Authorization-header³ - I hope that is correct).


  Best regards,

Adam


¹  --18:27:24--  http://www.koldfront.local/stats/
= `index.html'
 Resolving www.koldfront.local... 192.168.1.111
 Connecting to www.koldfront.local|192.168.1.111|:80... connected.
 HTTP request sent, awaiting response... 
   HTTP/1.1 401 Authorization Required
   Date: Sat, 31 Mar 2007 16:27:26 GMT
   Server: Apache/1.3.33 (Debian GNU/Linux) mod_fastcgi/2.4.2 mod_perl/1.29
   WWW-Authenticate: Basic realm=Statistics
   Content-Type: text/html; charset=iso-8859-1
   X-Varnish: 1997136530
   X-Forwarded-for: 192.168.1.160
   Transfer-Encoding: chunked
 Authorization failed.

²  --18:28:14--  http://www.koldfront.local:8080/stats/
= `index.html'
 Resolving www.koldfront.local... 192.168.1.111
 Connecting to www.koldfront.local|192.168.1.111|:8080... connected.
 HTTP request sent, awaiting response... 
   HTTP/1.1 401 Authorization Required
   Date: Sat, 31 Mar 2007 16:28:17 GMT
   Server: Apache/1.3.33 (Debian GNU/Linux) mod_fastcgi/2.4.2 mod_perl/1.29
   WWW-Authenticate: Basic realm=Statistics
   Connection: close
   Content-Type: text/html; charset=iso-8859-1
   X-Pad: avoid browser bug
 Authorization failed.

³ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=416940

-- 
 Subdued flamboyanceAdam Sjøgren
 [EMAIL PROTECTED]

___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Delay when fetching a page without Content-Length

2007-03-31 Thread Adam Sjøgren
On Sat, 31 Mar 2007 19:22:37 +, Poul-Henning wrote:

 if (req.http.authorization) {

 Should have been:  req.http.authenticate

Well, no such header is ever sent, from what I can see, but I'll give
it a go.

No difference - still ~16s delay.


First the browser asks for the page and the server answers with
WWW-Authenticate: Basic realm= The browser then asks me for
username and password, and goes on to retry the request, this time
with an Authorization: Basic ... header added.

The delay occurs on the first request.


  Best regards,

 Adam

-- 
 Yakka foob mog. Grug pubbawup zink wattoom gazork.  Adam Sjøgren
  Chumble spuzz.[EMAIL PROTECTED]

___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc