diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-26 22:22:18 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-26 22:22:18 +0000 |
commit | e34c201bb3678891c425f8db615759003ff77649 (patch) | |
tree | 40139add8c7514e71df703189661498b81539bd0 /src | |
parent | 719bb5c0f325c56431e77162fa11562e7b0d1552 (diff) | |
download | tor-e34c201bb3678891c425f8db615759003ff77649.tar.gz tor-e34c201bb3678891c425f8db615759003ff77649.zip |
and other debugs
svn:r1722
Diffstat (limited to 'src')
-rw-r--r-- | src/or/buffers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 5cd1e0f9a7..4cf9b39624 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -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; |