Re: Redirector fgets error

From: Dancer <dancer@dont-contact.us>
Date: Wed, 28 Apr 1999 08:45:18 +1000

Jesus Redrado wrote:
>
> Hi,
>
> I've developed a redirector program using C/C++.
>
> It works fine under Squid 1.1.22, but under Squid 2.1.PATCH2 and Squid
> 2.2.STABLE2 does not work.
>
> It uses the following code to read from Squid:
>
> while ( fgets(buffer,BUFFER_SIZE,stdin ) != NULL){
> /*..........*/
> }
>
> Some times, the buffer is "dirty".
>
> By example, If I try access to http://www.yahoo.com , the buffer is filled
> with
> @#@#pkw.yahoo.com
>
> My platform is Red Hat Linux 5.2, glibc-2.0.27 and my compiler is eg++ 1.1.2
>
> My redirector uses RPC and threads libraries ( but it works fine under Squid
> 1.1.22 )

Hmm. This is of some concern to me also, since I'm about to switch to
that version, and have a similar redirector. I'll enable my fascist
logging options before I do, and see if I can reproduce the problem.

D
Received on Tue Apr 27 1999 - 16:25:30 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:59 MST