[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] and other debugs



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;