Hello,

This patch fixes for following problems:
1) Proxy fails when see 301, 302 or 303 redirection codes
2) Proxy does not try other mirrors, if the first one fails
3) adding of the duplicate mirrors for the certain backend
4) Proxy skips of the query string, which is might be vital for http 
mirrors

Patch works as the following:
1) Caught 'Location' header http fetcher stores it in the http_location 
field
2) Caught 301, 302 or 303 code http fetcher fails by calling 
fetcher_redirected method on http client
3) Http client finishes connection and fails to the main fetcher by 
calling its' fetcher_redirected method
4) Fetcher adds new backend URI and goes to fail_over method
5) fail_over method either proceed to the next backend uri or fails, as 
usual

Patch is done against 1.9.35-03 stable release.




--
With the best regards,
Ilya Lebedev
developer
http://reksoft.com

Attachment: apt-proxy.patch
Description: Binary data

Reply via email to