Re: [squid-users] limit new req/sec on squid to X per sec

2019-11-27 Thread Alex Rousskov
On 11/27/19 12:31 AM, --Ahmad-- wrote: > im looking for limiting TCP req/sec on squid to X speed . There are many terminology problems on this thread, but just for the record, you can use Squid external ACLs to limit: 1. the rate of incoming HTTP requests 2. the rate of outgoing HTTP requests 3

Re: [squid-users] What is the proper way to close an ICAP transaction?

2019-11-27 Thread Alex Rousskov
On 11/27/19 1:42 PM, Felipe Arturo Polanco wrote: > Can you describe the process of option 2? > > Terminate Squid-to-client transmission while indicating (to that same > client) that the HTTP response body was cut short (i.e. that the > delivery of the response was aborted).  For HTTP responses w

Re: [squid-users] What is the proper way to close an ICAP transaction?

2019-11-27 Thread Felipe Arturo Polanco
Can you describe the process of option 2? Terminate Squid-to-client transmission while indicating (to that same client) that the HTTP response body was cut short (i.e. that the delivery of the response was aborted). What TCP Flag or ICAP header should the ICAP server send in order to inform conne

Re: [squid-users] What is the proper way to close an ICAP transaction?

2019-11-27 Thread Alex Rousskov
On 11/27/19 11:01 AM, Felipe Arturo Polanco wrote: > How can we then terminate an ICAP 200 OK transaction to squid without > sending the complete body back to it? We don't want squid to mark an > ICAP failure on us if we just close the TCP connection. To properly answer your question, I have to c

Re: [squid-users] What is the proper way to close an ICAP transaction?

2019-11-27 Thread Felipe Arturo Polanco
Thanks for the detailed response Alex, this is very helpful. How can we then terminate an ICAP 200 OK transaction to squid without sending the complete body back to it? We don't want squid to mark an ICAP failure on us if we just close the TCP connection. On Wed, Nov 27, 2019 at 10:54 AM Alex Rou

Re: [squid-users] What is the proper way to close an ICAP transaction?

2019-11-27 Thread Alex Rousskov
On 11/26/19 4:12 PM, Felipe Arturo Polanco wrote: > The flow is the following: > ICAP transaction is sent to ICAP server with a PREVIEW header > ICAP server sends ICAP header 100 Continue > ICAP server sends ICAP header 200 OK to start data transfer (*) Your notes below imply that the ICAP server

Re: [squid-users] making proxy-int to talk to proxy-ext

2019-11-27 Thread Amos Jeffries
On 27/11/19 11:56 am, robert k Wild wrote: > Hi Alex, > > i have done some more troubleshooting and my external proxy is good, i > get no errors and i have got one of my DMZ hosts connected to it and i > can browse the web, but my internal proxy cant contact my external > proxy, this is the error

Re: [squid-users] limit new req/sec on squid to X per sec

2019-11-27 Thread --Ahmad--
Hi Amos , Thank you for your reply , We ll you correct corresponding to TCP/HTTP . but my main concern is here its just POST/GET with single reply from our API server . Its just one TCP connection one HTTP connection . But yes i will work on other solutions since squid is not the right pl

Re: [squid-users] limit new req/sec on squid to X per sec

2019-11-27 Thread Amos Jeffries
On 28/11/19 1:03 am, --Ahmad-- wrote: > Hello Amos , Thank you for your response . > > we have an APP behind squid http APP that will crash if # of (req/sec ) > exceeded X . > it won’t crash about Already established session , it only care about new > req/sec hitting squid . > That does not ma

[squid-users] Testing

2019-11-27 Thread Ahmad Alzaeem
Testing 123 . ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users

Re: [squid-users] Squid Send to Cache Peer based on Header Access if not matched .

2019-11-27 Thread Amos Jeffries
On 27/11/19 11:24 am, --Ahmad-- wrote: > Hello Floks , > > > i have squid ACL/TCP Outgoing based on incoming header . > > as an example below : > > > acl requestheader5000 req_header X-Proxy 1.2.3.4 > acl requestheader5001 req_header X-Proxy 1.2.3.5 > acl requestheader5002 req_header X-Proxy 1

Re: [squid-users] limit new req/sec on squid to X per sec

2019-11-27 Thread --Ahmad--
Hello Amos , Thank you for your response . we have an APP behind squid http APP that will crash if # of (req/sec ) exceeded X . it won’t crash about Already established session , it only care about new req/sec hitting squid . I think its doable by iptables , but i really was hopping we can do i

Re: [squid-users] limit new req/sec on squid to X per sec

2019-11-27 Thread Amos Jeffries
On 27/11/19 6:31 pm, --Ahmad-- wrote: > Hello Folks , > > > im looking for limiting TCP req/sec on squid to X speed . > TCP does not make requests. > > say i have an instance running . > > > i want to limit it to 100 req/sec for “new connections “ not just for > concurrent connections . >

Re: [squid-users] ecap trickling (antivirus scan)

2019-11-27 Thread zbox
Hello, Ok it seems to be working now (10 bytes by 10 bytes and then the rest of the file) the browser download gauge is useless but I suppose it's normal behavior. Here is my conf : ecap_service clamav_service_req reqmod_precache uri=ecap://e-cap.org/ecap/services/clamav?mode=REQMOD