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 ?
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
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
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
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 nex