[or-cvs] and other debugs

Roger Dingledine arma at seul.org
Mon Apr 26 22:22:21 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	buffers.c 
Log Message:
and other debugs


Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/src/or/buffers.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- buffers.c	26 Apr 2004 21:15:06 -0000	1.80
+++ buffers.c	26 Apr 2004 22:22:18 -0000	1.81
@@ -217,6 +217,9 @@
   tor_assert(tls);
   assert_buf_ok(buf);
 
+  log_fn(LOG_DEBUG,"start: %d on buf, %d pending, at_most %d.",(int)buf_datalen(buf),
+         tor_tls_get_pending_bytes(tls), at_most);
+
   if (buf_ensure_capacity(buf, at_most+buf->datalen))
     return -1;
 
@@ -226,6 +229,8 @@
   if (at_most == 0)
     return 0;
 
+  log_fn(LOG_DEBUG,"before: %d on buf, %d pending, at_most %d.",(int)buf_datalen(buf),
+         tor_tls_get_pending_bytes(tls), at_most);
   r = tor_tls_read(tls, buf->mem+buf->datalen, at_most);
   if (r<0)
     return r;



More information about the tor-commits mailing list