Re: [squid-users] How to configure squid to let ICAP get the port of client

2016-10-10 Thread ysu yang
Thanks very much. It works well in Squid V3.5,but has error in Squid V3.3. It displayed "X-Client-Port :41328\r\n" in Squid V3.5,but displayed "X-Client-Port :%>p\r\n" in Squid V3.3. And ,how to get other '%code',like "%>a"or "%>p" Thanks in advance -- View this message in context: http://squ

[squid-users] How to configure squid to let ICAP get the port of client

2016-10-10 Thread ysu yang
like "icap_send_client_ip on",ICAP can get the IP of client.but, I don't found other similar configuration to let ICAP get the port of client. THX -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/How-to-configure-squid-to-let-ICAP-get-the-port-of-client-

Re: [squid-users] What's the algorithm to achieve AclRandom

2016-09-19 Thread ysu yang
First of all.thanks for your advice. > B. Adjust the ICAP service to store information about "sessions" in > such > a way that different service instances can share it. For example, if > all > ICAP services run on the same machine, they can use shared memory > segments to exchan

Re: [squid-users] What's the algorithm to achieve AclRandom

2016-09-19 Thread ysu yang
Firstly of all.Thanks for your advice. > B. Adjust the ICAP service to store information about "sessions" in > such > a way that different service instances can share it. For example, if > all > ICAP services run on the same machine, they can use shared memory > segments to exch

Re: [squid-users] What's the algorithm to achieve AclRandom

2016-09-18 Thread ysu yang
Now,I have two ICAP servers and want load balancing.If I use AclRandom,the traffic will be averagely distributed to the two ICAP servers,but it can't guarantee the integrity of the session.For example,I sent a message with 5 attachments,which were randomly assigned to two ICAP servers. If I

Re: [squid-users] c-icap load balancing

2016-09-18 Thread ysu yang
The haproxy was actually occurred to me before,but I am confused how to configure 1、How can I configure squid that the next traffic will go to haproxy. 2、Shouldn't the IP of the c-icap list by icap_service. if listed in haproxy,how to configure icap_service Hope to give some advice yanghe -- V