diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-26 21:15:06 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-26 21:15:06 +0000 |
commit | 80d0b634a4968c1b173760f2396bd6e7ebfe8cda (patch) | |
tree | 254fd18e05962745300dfe7a00b4262eb6ed6d8d /src/or/buffers.c | |
parent | 337f7a981fae2fa8733eb83567463f8b6151c20d (diff) | |
download | tor-80d0b634a4968c1b173760f2396bd6e7ebfe8cda.tar tor-80d0b634a4968c1b173760f2396bd6e7ebfe8cda.tar.gz |
add a debugging entry, to find the wants-to-read-but-can't bug
svn:r1719
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index afb302097..5cd1e0f9a 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -385,8 +385,10 @@ int fetch_from_buf_http(buf_t *buf, log_fn(LOG_DEBUG,"body not all here yet."); return 0; /* not all there yet */ } - bodylen = contentlen; - log_fn(LOG_DEBUG,"bodylen reduced to %d.",bodylen); + if(bodylen > contentlen) { + bodylen = contentlen; + log_fn(LOG_DEBUG,"bodylen reduced to %d.",bodylen); + } } /* all happy. copy into the appropriate places, and return 1 */ if(headers_out) { |