[or-cvs] clean up tabs and wide-lines from weasel"s commit
arma at seul.org
arma at seul.org
Sun Feb 5 03:23:19 UTC 2006
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
routerlist.c directory.c
Log Message:
clean up tabs and wide-lines from weasel's commit
Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.435
retrieving revision 1.436
diff -u -p -d -r1.435 -r1.436
--- routerlist.c 5 Feb 2006 02:07:28 -0000 1.435
+++ routerlist.c 5 Feb 2006 03:23:16 -0000 1.436
@@ -3313,12 +3313,12 @@ router_list_client_downloadable(void)
static void
update_router_descriptor_client_downloads(time_t now)
{
- /* Max amount of hashes to download per request.
- * Since squid does not like URLs >= 4096 bytes we limit it to 96.
- * 4096 - strlen(http://255.255.255.255/tor/server/d/.z) == 4058
- * 4058/41 (40 for the hash and 1 for the + that separates them) => 98
- * So use 96 because it's a nice number.
- */
+ /* Max amount of hashes to download per request.
+ * Since squid does not like URLs >= 4096 bytes we limit it to 96.
+ * 4096 - strlen(http://255.255.255.255/tor/server/d/.z) == 4058
+ * 4058/41 (40 for the hash and 1 for the + that separates them) => 98
+ * So use 96 because it's a nice number.
+ */
#define MAX_DL_PER_REQUEST 96
#define MIN_DL_PER_REQUEST 4
#define MIN_REQUESTS 3
Index: directory.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.347
retrieving revision 1.348
diff -u -p -d -r1.347 -r1.348
--- directory.c 5 Feb 2006 01:57:26 -0000 1.347
+++ directory.c 5 Feb 2006 03:23:16 -0000 1.348
@@ -581,7 +581,10 @@ directory_send_command(connection_t *con
}
if (strlen(proxystring) + strlen(url) >= 4096) {
- warn(LD_BUG,"Bug: squid does not like URLs longer than 4095 bytes, this one is %d bytes long: %s%s", (int)(strlen(proxystring) + strlen(url)), proxystring, url);
+ warn(LD_BUG,
+ "Bug: squid does not like URLs longer than 4095 bytes, this "
+ "one is %d bytes long: %s%s",
+ (int)(strlen(proxystring) + strlen(url)), proxystring, url);
}
tor_snprintf(request, sizeof(request), "%s %s", httpcommand, proxystring);
More information about the tor-commits
mailing list