[or-cvs] whenever you get a 503 in response to a directory fetch, tr...

arma at seul.org arma at seul.org
Sat Feb 11 22:20:23 UTC 2006


Update of /home/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/tor-010x/tor/src/or

Modified Files:
      Tag: tor-0_1_0-patches
	directory.c 
Log Message:
whenever you get a 503 in response to a directory fetch, try once more.

this will become important once servers start sending 503's whenever
they feel busy.


Index: directory.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.230.2.2
retrieving revision 1.230.2.3
diff -u -p -d -r1.230.2.2 -r1.230.2.3
--- directory.c	3 Feb 2006 09:47:12 -0000	1.230.2.2
+++ directory.c	11 Feb 2006 22:20:21 -0000	1.230.2.3
@@ -743,6 +743,7 @@ connection_dir_client_reached_eof(connec
       log_fn(LOG_INFO,"Empty directory; status %d (\"%s\") Ignoring.",
              status_code, reason);
       tor_free(body); tor_free(headers); tor_free(reason);
+      connection_dir_connect_failed(conn); /* retry */
       return 0;
     }
     if (status_code != 200) {



More information about the tor-commits mailing list