diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-12 13:09:02 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-12 13:09:02 -0500 |
commit | 79c234e0e3fa22d76029bd3b5e2c52072709cff3 (patch) | |
tree | 493297ffdc31ffbc87100c99607c705e46571b4d | |
parent | fd28754dd3dce0e00304825d531348414c0a354b (diff) | |
download | tor-79c234e0e3fa22d76029bd3b5e2c52072709cff3.tar.gz tor-79c234e0e3fa22d76029bd3b5e2c52072709cff3.zip |
On OOM, also log N circuits remaining
-rw-r--r-- | src/or/circuitlist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index ffb5e0cd0e..45fc95b561 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -1589,9 +1589,11 @@ circuits_handle_oom(size_t current_allocation) buf_shrink_freelists(1); /* This is necessary to actually release buffer chunks. */ - log_notice(LD_GENERAL, "Removed "U64_FORMAT" bytes by killing %d circuits.", + log_notice(LD_GENERAL, "Removed "U64_FORMAT" bytes by killing %d circuits; " + "%d circuits remain alive.", U64_PRINTF_ARG(mem_recovered), - n_circuits_killed); + n_circuits_killed, + smartlist_len(circlist) - n_circuits_killed); smartlist_free(circlist); } |