[ ijbswa-Feature Requests-3614927 ] Handling resources not found error, for failover

SourceForge.net <[email protected]>
Newsgroups gmane.comp.web.privoxy.devel
Message-ID <[email protected]>
Feature Requests item #3614927, was opened at 2013-08-19 22:23
Message generated for change (Comment added) made by nodje
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=361118&aid=3614927&group_id=11118

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Configuration
Group: None
>Status: Open
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: nodje (nodje)
Assigned to: Fabian Keil (fabiankeil)
Summary: Handling resources not found error, for failover

Initial Comment:
It'd come very handy to be able to detect Privoxy failure to find resources, so that failover can be handled, in a PAC file for instance.

That is along with  ID: 2519815 feature request.

The point is, whatever you use Privoxy for, forwarding to SOCK or to another proxy or direct to internet, it can be one of multiple proxies in an LAN.
To be able to treat it as a "potential source", to be able to manage balancing and/or failover, one has to receive a clear "failing" HTTP response when resources are not found.

Since Privoxy returns a webpage, resources not found are never treated as errors.

I hope my point is clear, as I'm sure my technical description of what is actually happening is pretty poor.

The feature here could be a simple configuration swicth, which turns webpage response to "resource not found" on or off.

----------------------------------------------------------------------

>Comment By: nodje (nodje)
Date: 2013-08-20 20:46

Message:
After some research I seems that the failover possibilities arise only from
an address:port non resolution.

At least in the case of Squid and of a browser using a PAC file.

With a PAC file's FindProxyForURL method returning a string like:

PROXY 192.168.0.2:8118:DIRECT;

a browser is able to fail over DIRECT connection, should the first proxy
become unavailable.

The problem when using Privoxy is that even if the resource is not
available, a browser or squid will never fail over to the next address
since Privoxy address will always be resolvable.

Would there be a possibility to let Privoxy clients fail over a next
address when Privoxy can't find a resource?

----------------------------------------------------------------------

Comment By: Fabian Keil (fabiankeil)
Date: 2013-08-20 10:55

Message:
Thanks for the suggestion.

Could you be more specific about how you want Privoxy's responses to look
like?

Privoxy already uses 'clear "failing" HTTP responses' when parent proxies
are unavailable. Status codes are unrelated to whether or not a "webpage"
is returned as well.

If you don't want to see the problem description, you could simply empty
the appropriate template in templdir:
http://www.privoxy.org/user-manual/config.html#TEMPLDIR

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=361118&aid=3614927&group_id=11118

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.