[or-cvs] Log number of bytes pending after read.
Nick Mathewson
nickm at seul.org
Mon Apr 26 23:06:01 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv31437/src/or
Modified Files:
buffers.c
Log Message:
Log number of bytes pending after read.
Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/src/or/buffers.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- buffers.c 26 Apr 2004 23:00:07 -0000 1.82
+++ buffers.c 26 Apr 2004 23:05:58 -0000 1.83
@@ -237,7 +237,8 @@
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;
}
More information about the tor-commits
mailing list