[squid-users] Squid with Icap fails on every Nth request

From: Graeme Bisset <gbisset@dont-contact.us>
Date: Thu, 21 Oct 2004 10:11:04 +0100

Hi,

I'm running the latest Icap and Squid sources and this problem appears.
The problem definitely seems to be within the squid code.

I've managed to track it far enough to find that in httpReadReply(), it
is failing the following check:

/*
* this is where we give data coming from an origin
* server to a "respmod" service
*/
debug(11, 5) ("calling icapSendRespMod from %s:%d\n", __FILE__,
__LINE__);
if (cbdataValid(httpState->icap_writer)) {
        icapSendRespMod(httpState->icap_writer, buf, len, 0);
        httpState->icap_writer->fake_content_length += len;
}

This means it doesn't attempt to send the content to the Icap server so
the item being downloaded never appears in my browser.

I've tried adding the following code at the end of the
httpSendComplete() method and at the start of the httpReadReply()
method.

if (!cbdataValid(httpState->icap_writer))
{
        printf("Invalid cbdata!\n");
}

I find that normally the message won't appear at all but when an object
fails to load, the message appears (generated from within
httpReadReply()).

What could be happening between the end of httpSendComplete() and the
start of httpReadReply() that could be messing up my icap_writer
structure?

How could I go about debugging this further?

Thanks in advance for any help!!!

Graeme
Received on Thu Oct 21 2004 - 03:21:06 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Nov 01 2004 - 12:00:02 MST