]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
and other debugs
authorRoger Dingledine <arma@torproject.org>
Mon, 26 Apr 2004 22:22:18 +0000 (22:22 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 26 Apr 2004 22:22:18 +0000 (22:22 +0000)
svn:r1722

src/or/buffers.c

index 5cd1e0f9a73f9d828577fe04724d3660ca639bc4..4cf9b39624c1c1f9087a5291cbef2bb013e285ac 100644 (file)
@@ -217,6 +217,9 @@ int read_to_buf_tls(tor_tls *tls, int at_most, buf_t *buf) {
   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 @@ int read_to_buf_tls(tor_tls *tls, int at_most, buf_t *buf) {
   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;