summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-26 23:05:58 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-26 23:05:58 +0000
commit06624df622e6278d2f220ed538db8df0eabc5fe1 (patch)
tree3836e12d88917827cf610277695d9be306e25ab1
parentd7f4b8237359d8e8e256a53a8a68651d75071fa4 (diff)
downloadtor-06624df622e6278d2f220ed538db8df0eabc5fe1.tar.gz
tor-06624df622e6278d2f220ed538db8df0eabc5fe1.zip
Log number of bytes pending after read.
svn:r1726
-rw-r--r--src/or/buffers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 8eca58818d..47b5b4e6ac 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -237,7 +237,8 @@ int read_to_buf_tls(tor_tls *tls, int at_most, buf_t *buf) {
if (r<0)
return r;
buf->datalen += r;
- log_fn(LOG_DEBUG,"Read %d bytes. %d on inbuf.",r, (int)buf->datalen);
+ log_fn(LOG_DEBUG,"Read %d bytes. %d on inbuf; %d pending",r,
+ (int)buf->datalen,(int)tor_tls_get_pending_bytes(tls));
return r;
}