Re: [squid-users] problem with upload

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 22 May 2012 11:57:41 +1200

On 22.05.2012 06:18, Mustafa Raji wrote:
> hi
> i have squid cache server configured in the intercept mode. i have a
> problem when i upload to websites, some time i can upload normally
> and
> other time when i upload a file to the internet the uploading process
> does not complete and the upload reduced to 0 kB
> please can any one help me. is there any way that squid effects on
> uploading data. the configuration file is

No Squid does not affect the upload data. It is relayed as received.

You will need to identify the difference between POST/PUT requests
which are succeeding and those which are failing. This may require a TCP
packet trace from between the clients and Squid (use "tcpdump -s 0 ..."
to get all the headers).
  I suspect you will find the HTTP/1.1 Expect feature being sent in the
failing requests (no body data gets sent until after a timeout or 100 /
417 message exchange).

Please also identify which Squid release number you are using.

>
> acl my_network src 192.168.12.0/24
> http_access allow my_network
>

The above rule should really be down ... ---->

> #squid default acl configuration
> acl manager proto cache_object
> acl localhost src 127.0.0.1/32
> acl to_localhost dst 127.0.0.0/8
> acl Safe_ports port 80
> acl Safe_ports port 21
> acl Safe_ports port 443
> acl Safe_ports port 70
> acl Safe_ports port 210
> acl Safe_ports port 1025-65535
> acl Safe_ports port 280
> acl Safe_ports port 488
> acl Safe_ports port 591
> acl Safe_ports port 777
> acl SSL_ports port 443 563
>
> acl CONNECT method CONNECT
> http_access deny !Safe_ports
> http_access deny CONNECT !SSL_ports
> http_access allow manager localhost
> http_access deny manager !localhost

   ---> ... here. Below the security protection rules that prevent
network attacks.

NOTE: Having the last rule in your config a "deny ..." rule means
anything not already blocked is allowed.
   You should finish the http_access rules with "http_access deny all"

>
> http_port 3128 intercept
> http_port 8181
>
> client_persistent_connections off
> server_persistent_connections off
> cache_effective_user proxy
> coredump_dir /var/coredump
>
> #define cache replacement policy
> memory_replacement_policy heap GDSF
> cache_replacement_policy heap LFUDA

Amos
Received on Mon May 21 2012 - 23:57:46 MDT

This archive was generated by hypermail 2.2.0 : Tue May 22 2012 - 12:00:04 MDT