Re: [squid-users] "helperHandleRead: unexpected read" for helper function

2021-05-08 Thread Alex Rousskov
On 5/7/21 10:22 PM, Justin Michael Schwartzbeck wrote: > So I have written an external acl helper > while(1) { > string category, hostname; > cin >> category >> hostname; > > // Perform REST API > I have it all configured in my squid.conf: > external_acl_type host_category_help

Re: [squid-users] "helperHandleRead: unexpected read" for helper function

2021-05-08 Thread Justin Michael Schwartzbeck
Yes I solved my problem... when there are multiple lines on the input, then it flakes out. I basically am using getline now with \n as the delimiter. It works flawlessly now. Thanks On Sat, May 8, 2021 at 9:52 AM Justin Michael Schwartzbeck < justinms...@gmail.com> wrote: > I think I may have fou

Re: [squid-users] "helperHandleRead: unexpected read" for helper function

2021-05-08 Thread Justin Michael Schwartzbeck
I think I may have found the problem. I am updating my source, so the lines I mentioned before won't count here. I will get back. On Fri, May 7, 2021 at 9:22 PM Justin Michael Schwartzbeck < justinms...@gmail.com> wrote: > Hello all... I would really appreciate some help. > > So I have written an

Re: [squid-users] helperHandleRead: unexpected read

2019-11-01 Thread Amos Jeffries
On 2/11/19 11:58 am, 499258179 wrote: > I just use php function call my pho script, such as php /etc/test.php. > When I type test1, stdout only have OK > No empty lines? Is your squid.conf set to use concurrency for this helper? (this script cannot handle that). Amos ___

Re: [squid-users] helperHandleRead: unexpected read

2019-11-01 Thread 499258179
I just use php function call my pho script, such as php /etc/test.php. When I type test1, stdout only have OK -- Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html ___ squid-users mailing list squid-users@lists.squ

Re: [squid-users] helperHandleRead: unexpected read

2019-11-01 Thread Amos Jeffries
On 1/11/19 7:15 pm, 499258179 wrote: > Following is my php script, can u check for me, it is looks like only one > line stdout How have you tested it? Your explicit fwrite calls look okay for the expected outputs. But are they actually the only things producing output? With PHP any of the funct

Re: [squid-users] helperHandleRead: unexpected read

2019-10-31 Thread 499258179
Following is my php script, can u check for me, it is looks like only one line stdout -- Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html ___ squid-users mailing list squid-users@lists.squid-cache.org http://li

Re: [squid-users] helperHandleRead: unexpected read

2019-10-31 Thread Amos Jeffries
On 1/11/19 6:23 pm, 499258179 wrote: > I just start learn squid, and i find a > 2019/11/01 00:06:14 kid1| helperHandleRead: unexpected read from timecheck > #Hlpr8, 3 bytes 'OK > ' > 2019/11/01 00:06:20 kid1| helperHandleRead: unexpected read from timecheck > #Hlpr6, 3 bytes 'OK > in my cache log,