[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] complete_only == !allow_partial. This enables useful use of...



Update of /home/or/cvsroot/tor/src/or
In directory moria:/home/nickm/src/tor/src/or

Modified Files:
	directory.c 
Log Message:
complete_only == !allow_partial. This enables useful use of partial desc downloads. Backport candidate

Index: directory.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.384
retrieving revision 1.385
diff -u -p -d -r1.384 -r1.385
--- directory.c	22 Jun 2006 07:25:15 -0000	1.384
+++ directory.c	29 Jun 2006 11:04:42 -0000	1.385
@@ -915,12 +915,12 @@ connection_dir_client_reached_eof(connec
     /* Try declared compression first if we can. */
     if (compression > 0)
       tor_gzip_uncompress(&new_body, &new_len, body, body_len, compression,
-                          allow_partial, LOG_PROTOCOL_WARN);
+                          !allow_partial, LOG_PROTOCOL_WARN);
     /* Okay, if that didn't work, and we think that it was compressed
      * differently, try that. */
     if (!new_body && guessed > 0 && compression != guessed)
       tor_gzip_uncompress(&new_body, &new_len, body, body_len, guessed,
-                          allow_partial, LOG_PROTOCOL_WARN);
+                          !allow_partial, LOG_PROTOCOL_WARN);
     /* If we're pretty sure that we have a compressed directory, and
      * we didn't manage to uncompress it, then warn and bail. */
     if (!plausible && !new_body) {