Mailing List Archive

problems with varnish 1.1.2
Hi

I tried today to switch to varnish 1.1.2 but have a problem.

It seems that version 1.1.2 does not send the data itself. When I test
it with telnet I get the headers but after some seconds I get
disconnected.

[Flashlie:~] denis% telnet www.test.org 80
Trying 10.1.1.2...
Connected to www.test.org.
Escape character is '^]'.
GET http://www.test.org/index.html HTTP/1.1

HTTP/1.1 200 OK
Server: ZenoServer/2.1.10 * DBSERVER/r1456 * Middleware/1444
Vary: Accept-Encoding
Content-Type: text/html
Cache-Control: s-maxage=300, max-age=120
Last-Modified: Fri, 21 Dec 2007 15:20:42 GMT
Date: Fri, 21 Dec 2007 16:33:38 GMT
X-Varnish: 1220401610
Age: 0
Via: 1.1 varnish
Connection: keep-alive

Connection closed by foreign host.


The connection to the backend works because the
Server header shows this. But it does not deliver
the content.

Any suggestions?

I build version 1.1.1 the same way and everything works

Denis
problems with varnish 1.1.2 [ In reply to ]
Denis Ahrens <denis at zeno.org> writes:
> I tried today to switch to varnish 1.1.2 but have a problem.
>
> [.continues to provide almost none of the information required to
> diagnose and solve the problem]

Please. Send. Logs.

> GET http://www.test.org/index.html HTTP/1.1
>

Not a valid HTTP/1.1 request. Varnish should actually 400 that one.

> HTTP/1.1 200 OK
> Server: ZenoServer/2.1.10 * DBSERVER/r1456 * Middleware/1444
> Vary: Accept-Encoding
> Content-Type: text/html
> Cache-Control: s-maxage=300, max-age=120
> Last-Modified: Fri, 21 Dec 2007 15:20:42 GMT
> Date: Fri, 21 Dec 2007 16:33:38 GMT
> X-Varnish: 1220401610
> Age: 0
> Via: 1.1 varnish
> Connection: keep-alive
>
> Connection closed by foreign host.

You got your response. No Content-Length and no Content-Encoding
means no body. Varnish waited for a second request but grew tired and
hanged up on you.

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no