[squid-users] Re: Squid doubles a request

From: Matthias Teege <matthias@dont-contact.us>
Date: Wed, 30 Apr 2003 09:50:35 +0000 (UTC)

In article <200304301034.57864@henrik.marasystems.com> you wrote:
> There is no 2.4.10 version of Squid.
Sorry, is a 2.4.STABLE7.

> What does Squid log in access.log? Preferably with log_mime_hdrs
> enabled.

1051695784.754 10 192.168.153.10 TCP_HIT/200 2637 GET http://www.jteege.de/jwiki.jpg - NONE/- image/jpeg [Host: www.j teege.de\r\nUser-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030426\r\nAccept: video/x-mng,image/png ,image/jpeg,image/gif;q=0.2,*/*;q=0.1\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflateb~eompress;q=0.9\ r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nConnection: close\r\nProxy-Connection: close\r\nReferer: http://www. jteege.de/cgi-bin/awki.cgi?edit=true&page=MatthiasTeege\r\n] [HTTP/1.0 200 OK\r\nServer: fnord/1.7\r\nContent-Type: image /jpeg\r\nConnection: Keep-Alive\r\nContent-Length: 2433\r\nLast-Modified: Mon, 28 Apr 2003 16:29:21 GMT\r\n\r] 1051695788.914 297 192.168.153.10 TCP_MISS/200 745 POST
http://www.jteege.de/cgi-bin/awki.cgi? - DIRECT/81.2.131.61 te xt/html [Host: www.jteege.de\r\nUser-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030426\r\nAccept: t ext/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif ;q=0.2,*/*;q=0.1\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflateb~eompress;q=0.9\r\nAccept-Charset: IS O-8859-1,utf-8;q=0.7,*;q=0.7\r\nConnection: close\r\nProxy-Connection: close\r\nReferer: http://www.jteege.de/cgi-bin/awk i.cgi?edit=true&page=MatthiasTeege\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 16\r\n] [HTTP/1. 0 200 OK\r\nServer: fnord/1.7\r\nPragma: no-cache\r\nConnection: close\r\nContent-type: text/html\r\n\r]
1051695788.980 10 192.168.153.10 TCP_HIT/200 2637 GET http://www.jteege.de/jwiki.jpg - NONE/- image/jpeg [Host: www.j teege.de\r\nUser-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030426\r\nAccept: video/x-mng,image/png ,image/jpeg,image/gif;q=0.2,*/*;q=0.1\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflateb~eompress;q=0.9\ r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nConnection: close\r\nProxy-Connection: close\r\nReferer: http://www. jteege.de/cgi-bin/awki.cgi?save=true&page=MatthiasTeege\r\n] [HTTP/1.0 200 OK\r\nServer: fnord/1.7\r\nContent-Type: image /jpeg\r\nConnection: Keep-Alive\r\nContent-Length: 2433\r\nLast-Modified: Mon, 28 Apr 2003 16:29:21 GMT\r\n\r]
1051695794.814 223 192.168.153.10 TCP_MISS/200 893 GET http://www.jteege.de/cgi-bin/awki.cgi/FrontPage - DIRECT/81.2.1 31.61 text/html [Host: www.jteege.de\r\nUser-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030426\r\nA ccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,i mage/gif;q=0.2,*/*;q=0.1\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflateb~eompress;q=0.9\r\nAccept-Cha rset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nConnection: close\r\nProxy-Connection: close\r\nReferer: http://www.jteege.de/cgi -bin/awki.cgi?save=true&page=MatthiasTeege\r\n] [HTTP/1.0 200 OK\r\nServer: fnord/1.7\r\nPragma: no-cache\r\nConnection: close\r\nContent-type: text/html\r\n\r]
1051695794.880 9 192.168.153.10 TCP_HIT/200 2637 GET http://www.jteege.de/jwiki.jpg - NONE/- image/jpeg [Host: www.j teege.de\r\nUser-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030426\r\nAccept: video/x-mng,image/png ,image/jpeg,image/gif;q=0.2,*/*;q=0.1\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflateb~eompress;q=0.9\ r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nConnection: close\r\nProxy-Connection: close\r\nReferer: http://www. jteege.de/cgi-bin/awki.cgi/FrontPage\r\n] [HTTP/1.0 200 OK\r\nServer: fnord/1.7\r\nContent-Type: image/jpeg\r\nConnection : Keep-Alive\r\nContent-Length: 2433\r\nLast-Modified: Mon, 28 Apr 2003 16:29:21 GMT\r\n\r]

This is the log for an edit, save cycle plus a klick to get the save
statement. As you can see, the edit ocours twice.

> I would actually think it is a problem with the script called,

Yes, I thing thats true because I have another script on another
server which works with squid.

> Hint: ngrep is a good tool for investigating the details of the
> traffic. See also RFC2616 (HTTP/1.1).
I'll try it.

Many thanks
Matthias
Received on Wed Apr 30 2003 - 03:51:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:15:36 MST