I got fed up with the current behaviour, and tried to fix it.
Warning: I'm not a python hacker; this fix may lead to memory/socket
leaks or whatever.
diff -r -u apt-proxy-1.9.31/apt_proxy/apt_proxy.py
apt-proxy-1.9.31.patch/apt_proxy/apt_proxy.py
--- apt-proxy-1.9.31/apt_proxy/apt_proxy.py 2005-05-20 21:54:42.000000000
+1000
+++ apt-proxy-1.9.31.patch/apt_proxy/apt_proxy.py 2005-08-08
14:12:56.134452314 +1000
@@ -360,6 +360,7 @@
-caches the received data if everyting went well (if saveData=True)
-takes care of mtime and atime
-finishes connection with server and the requests
+ -Tries next server if there was a problem
"""
import shutil
@@ -387,7 +388,9 @@
self.factory.file_served(self.request.uri)
self.request.backend.get_packages_db().packages_file(self.request.uri)
-
+ else:
+ self.request.activateNextBackendServer(self)
+
if self.transport:
try:
self.transport.loseConnection()
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]