Search squid archive

Re: what "line" expects squid from redirector

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

"" is not a proper URL. Of course you will get an error. Redirector MUST
return
 either 1) original URL received,
 or 2) the new changed URL.


> otherwise ,when i use label #2,i
> get 'Operation timed out error'.
>

AKA squid has been left hanging waiting for a response. Redirector has
reset waiting for another request. What do you think is going to happen?


> I don't know what's right .

neither one.


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

If it does not understand the URI it needs to do one of the following:
1) silently accept, and return the original
2) redirect URL to an error page indicating what has gone wrong inside the
redirector.


Amos



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux