[squid-users] RE: Squid returning bad http response

From: Volker-Yoblick, Adam <avolker_at_ea.com>
Date: Mon, 13 Dec 2010 13:18:26 -0800

Update on this:

It seems if I step through my code slowly, the response is always good. It only seems to be happening when multiple requests are made through the proxy, in very quick succession (still serially though, there are NOT multiple requests getting sent at the same time).

Has anyone experienced anything like this with squid 2.7.STABLE9? Is there some sort of configuration option I need to set to handle rapid requests or something similar?

-----Original Message-----
From: Volker-Yoblick, Adam [mailto:avolker_at_ea.com]
Sent: Monday, December 13, 2010 2:13 PM
To: 'squid-users_at_squid-cache.org'
Subject: [squid-users] Squid returning bad http response

Greetings,

I downgraded from squid 3.1.9 to squid 2.7.STABLE9 so that I could use storeurl_rewrite_program in my config file, and I'm running into a different problem.

I have an application sending a GET to another server through the proxy, but the response coming back from the proxy is not a valid HTTP response. This works just fine in squid 3.1.9, and it also works when I connect directly to the server without using the squid proxy.

The header looks like this:

GET http://********/Foo/bar.txt HTTP/1.0
Connection: Keep-Alive
From: ********
User-Agent: ********

I'm searching the status line for "\r\n", but this search returns a null pointer. I set a breakpoint and looked at the buffer coming back from the socket.Read, and it looks like garbage. There's no HTTP status there anywhere.

Has anyone seen anything like this with squid 2.7.STABLE9?
Received on Mon Dec 13 2010 - 21:18:36 MST

This archive was generated by hypermail 2.2.0 : Tue Dec 14 2010 - 12:00:03 MST