Redirector fgets error

From: Jesus Redrado <>
Date: Tue, 27 Apr 1999 15:56:04 +0200


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 , the buffer is filled

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
Received on Tue Apr 27 1999 - 08:01:19 MDT

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