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 )

Thanks in advance.

Jes�s Redrado
EduNet
[EMAIL PROTECTED]

Reply via email to