summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-10-14 02:26:13 +0000
committerNick Mathewson <nickm@torproject.org>2005-10-14 02:26:13 +0000
commit998cf8d6222607113fbd8fa8563d507a808ee869 (patch)
tree2e3f8dfbf46c60a659b75f715a65b8266f5377a0 /src/or/main.c
parent11b76b9ca5b39eeeb4fcff1593db2efe14cc5827 (diff)
downloadtor-998cf8d6222607113fbd8fa8563d507a808ee869.tar.gz
tor-998cf8d6222607113fbd8fa8563d507a808ee869.zip
Try to extract as many descriptors as possible from truncated http responses. (when DIR_PURPOSE_FETCH_ROUTERDESC)
svn:r5249
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 81ce772168..8d32cd80f0 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -580,9 +580,9 @@ run_connection_housekeeping(int i, time_t now)
/* This check is temporary; it's to let us know whether we should consider
* parsing partial serverdesc responses. */
if (conn->purpose == DIR_PURPOSE_FETCH_SERVERDESC &&
- buf_datalen(conn->inbuf)>=(24*1024)) {
- log_fn(LOG_NOTICE, "Expired a wedged directory connection that had already downloaded %d bytes of descriptors. If this happens often, please file a bug report.",
- (int)buf_datalen(conn->inbuf));
+ buf_datalen(conn->inbuf)>=1024) {
+ log_fn(LOG_INFO,"Trying to extract information from wedged server desc downoad");
+ connection_dir_reached_eof(conn);
}
connection_mark_for_close(conn);
return;