Browse code

freshclam: re-enable short-time blacklisting of mirrors on connection errors

Tomasz Kojm authored on 2011/09/19 20:45:37
Showing 3 changed files
... ...
@@ -1,3 +1,8 @@
1
+Mon Sep 19 13:44:36 CEST 2011 (tk)
2
+----------------------------------
3
+ * freshclam: re-enable short-time blacklisting of mirrors on
4
+	      connection errors
5
+
1 6
 Fri Sep 16 16:17:52 CEST 2011 (tk)
2 7
 ----------------------------------
3 8
  * freshclam: disable load balancing in further download attempts
... ...
@@ -361,6 +361,7 @@ static int wwwconnect(const char *server, const char *proxy, int pport, char *ip
361 361
 		loadbal = 0;
362 362
 		i = 0;
363 363
 	    } else i++;
364
+	    mirman_update(addr, rp->ai_family, mdat, 2);
364 365
 	    continue;
365 366
 	} else {
366 367
 	    if(mdat) {
... ...
@@ -51,7 +51,7 @@
51 51
 #endif
52 52
 
53 53
 #define IGNORE_LONG	3 * 86400
54
-#define IGNORE_SHORT	1800
54
+#define IGNORE_SHORT	6 * 3600
55 55
 
56 56
 void mirman_free(struct mirdat *mdat)
57 57
 {