Re: [squid-users] what "line" expects squid from redirector

From: Arthur Tumanyan <arthurtumanyan@dont-contact.us>
Date: Thu, 27 Sep 2007 06:58:31 -0700 (PDT)

Henrik Nordstrom-5 wrote:
>
>> when squid says "helperHandleRead: unexpected read from url_rewriter..."
>> ?
>
> This message is printed if the helper outputs some data without getting
> a query from Squid..
>
> Regards
> Henrik
>
please,have a look at this pieac of code.
//
while(fgets(p_string, LINE_MAXLEN, stdin) != NULL){
        //
        freeRedirStruct();
        chkForReconf();
        //
        scanned = sscanf(p_string,"%s %s %s %s %s",
                rEntry.url,
                rEntry.src_address,
                rEntry.user,
                rEntry.method,
                rEntry.ident
);
        
        //
        if(scanned != 5){

        puts("");fflush(stdout); continue; // label #1

/*

continue; //label #2
*/
        }
        
        .................................
..................
}
When I use 'label #1' I get " helperHandleRead: unexpected reply on
channel 0 from url_rewriter #1 '' " error,otherwise ,when i use label #2,i
get 'Operation timed out error'.

I don't know what's right .
sometime reredirector gets lines like this :
'A//games.yahoo.com/&pl=DivX%20Browser%20Plug-In%3AQuickTime%20Plug-in%206.0%20/%207%3ARealPlayer%209%3AWindows%20Media%20Player%20Plugin%3Amplayerplug-in%203.31%3AShockwave%20Flash%3ADefault%'

Can you tell me,what is needed to solve this problem?Thanks in advance.

-- 
View this message in context: http://www.nabble.com/what-%22line%22-expects-squid-from-redirector-tf4500466.html#a12921877
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Thu Sep 27 2007 - 07:58:35 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:03 MDT