Re: [squid-users] external helper development

2022-02-06 Thread David Touzeau
Sorry  Elizer It was a mistake... No, your code is clean.. Impressive for the first shot Many thanks for your example, we will run our stress tool to see the difference... Just a question Why did you send 500 milliseconds of sleep in the handle_stdoud ? Is it for let squid closing the pipe

Re: [squid-users] external helper development

2022-02-06 Thread David Touzeau
Thanks Elizer !! I have tested your code as is in /lib/squid3/external_acl_first process but it take 100% CPU and squid freeze requests. Seems a crazy loop somewhere... root 105852  0.0  0.1  73712  9256 ?    SNs  00:27   0:00 squid squid    105854  0.0  0.3  89540 27536 ?    SN  

Re: [squid-users] [ext] Re: Absolute upper limit for filedescriptors in squid-6?

2022-02-06 Thread Eliezer Croitoru
It has Systemd, Use it. Eliezer Eliezer Croitoru NgTech, Tech Support Mobile: +972-5-28704261 Email: ngtech1...@gmail.com -Original Message- From: Ralf Hildebrandt Sent: Friday, February 4, 2022 10:12 To: Eliezer Croitoru Cc: 'Squid Users' Subject: Re: [squid-users] [ext]

Re: [squid-users] external helper development

2022-02-06 Thread Eliezer Croitoru
Hey David, Not a fully completed helper but it seems to works pretty nice and might be better then what exist already: https://gist.githubusercontent.com/elico/03938e3a796c53f7c925872bade78195/raw/21ff1bbc0cf3d91719db27d9d027652e8bd3de4e/threaded-helper-example.py #!/usr/bin/env python

Re: [squid-users] external helper development

2022-02-06 Thread Eliezer Croitoru
Hey David, It will take me more then couple seconds to write an example threaded python helper however it’s pretty simple why this is helper is slow. It uses a select statement and threading in a very wrong way. Before anything else try to compare the right helpers between php and python. The