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

2021-05-07 Thread Justin Michael Schwartzbeck
Hello all... I would really appreciate some help. So I have written an external acl helper in C++ that talks to a REST API that I developed. Here is a github link (don't worry, it is pretty short, and the only parts you need to look at are lines 46, 52, 58 and 60): https://github.com/e2guardian-a

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" 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 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