Mailing List Archive

missing Content-Lenght header
Hi

I have varnish head running and everything now looks good.
But after some while varnishd stops to send out
Content-Length header. A simple restart and it works again
for some hours then it happens again.

The logoutput with the missing Content-Length header ends
with "SessionClose c timeout", when it works it shows
"SessionClose c EOF"

I have also seen "ObjLostHeader" in the logfile. But I don't
know if that was related. I will report if I see it again.

Denis
missing Content-Lenght header [ In reply to ]
In message <C0FDF033-12BB-4944-BF77-6FFAAA8E84A3 at zeno.org>, Denis Ahrens writes
:

>I have varnish head running and everything now looks good.

How recent is that copy ? I (belive I) fixed that bug
this week.

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
missing Content-Lenght header [ In reply to ]
On 30.06.2007, at 20:57, Poul-Henning Kamp wrote:

> In message <C0FDF033-12BB-4944-BF77-6FFAAA8E84A3 at zeno.org>, Denis
> Ahrens writes
> :
>
>> I have varnish head running and everything now looks good.
>
> How recent is that copy ? I (belive I) fixed that bug
> this week.

svnversion says 1589M. you made no changes after that.

Denis
missing Content-Lenght header [ In reply to ]
Denis Ahrens <denis at zeno.org> writes:
> svnversion says 1589M. you made no changes after that.

Are you sure your tree is up-to-date and you rebuilt everything? r1584
should have fixed that bug.

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no
missing Content-Lenght header [ In reply to ]
On 30.06.2007, at 23:45, Dag-Erling Sm?rgrav wrote:

> Denis Ahrens <denis at zeno.org> writes:
>> svnversion says 1589M. you made no changes after that.
>
> Are you sure your tree is up-to-date and you rebuilt everything?
> r1584
> should have fixed that bug.

I made the binary one day later, but maybe I forgot to checkout before.
Anyway, I made a new one from HEAD and will look at it and report
back when it happens again.

Denis

PS: I still need to add --prefix=/usr/local to configure. Do I need to
remove
some files which autogen.sh builds new then?
missing Content-Lenght header [ In reply to ]
Denis Ahrens <denis at zeno.org> writes:
> PS: I still need to add --prefix=/usr/local to configure. Do I need to
> remove some files which autogen.sh builds new then?

I'm not sure I understand what you mean - normally, you run autogen.sh
first, then ./configure with whatever options you want. However, if
you're running on FreeBSD, /usr/local is the default prefix; there is no
need to specify it explicitly.

You can also use autogen.des, which runs autogen.sh *and* configure with
options useful for development and debugging; it sets the prefix to
/opt/varnish.

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no
missing Content-Lenght header [ In reply to ]
On 30.06.2007, at 23:45, Dag-Erling Sm?rgrav wrote:

> Denis Ahrens <denis at zeno.org> writes:
>> svnversion says 1589M. you made no changes after that.
>
> Are you sure your tree is up-to-date and you rebuilt everything?
> r1584
> should have fixed that bug.

Iam now running r1603 and it started to happen again

13 ObjLostHeader c Content-Length:

Denis
missing Content-Lenght header [ In reply to ]
In message <3C33EDA7-EE30-4017-B5FC-B9E87A22AA38 at zeno.org>, Denis Ahrens writes
:

>> Are you sure your tree is up-to-date and you rebuilt everything? =
>
>> r1584
>> should have fixed that bug.
>
>Iam now running r1603 and it started to happen again
>
>13 ObjLostHeader c Content-Length:

Can you try this patch ?


Index: cache_backend.c
===================================================================
--- cache_backend.c (revision 1604)
+++ cache_backend.c (working copy)
@@ -337,6 +337,8 @@
AZ(close(vc->fd));
vc->fd = -1;
vc->backend = NULL;
+ WS_Reset(vc->http->ws);
+ WS_Reset(vc->http2->ws);
LOCK(&vbemtx);
TAILQ_INSERT_HEAD(&vbe_head, vc, list);
VSL_stats->backend_unused++;
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
missing Content-Lenght header [ In reply to ]
On 02.07.2007, at 09:34, Poul-Henning Kamp wrote:

> In message <3C33EDA7-EE30-4017-B5FC-B9E87A22AA38 at zeno.org>, Denis
> Ahrens writes
> :
>
>>> Are you sure your tree is up-to-date and you rebuilt everything? =
>>
>>> r1584
>>> should have fixed that bug.
>>
>> Iam now running r1603 and it started to happen again
>>
>> 13 ObjLostHeader c Content-Length:
>
> Can you try this patch ?

Your patch is now running for 9h and I have not
seen the problem again. So I think it works.

Denis