mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
On OOM, also log N circuits remaining
This commit is contained in:
parent
fd28754dd3
commit
79c234e0e3
@ -1589,9 +1589,11 @@ circuits_handle_oom(size_t current_allocation)
|
|||||||
buf_shrink_freelists(1); /* This is necessary to actually release buffer
|
buf_shrink_freelists(1); /* This is necessary to actually release buffer
|
||||||
chunks. */
|
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),
|
U64_PRINTF_ARG(mem_recovered),
|
||||||
n_circuits_killed);
|
n_circuits_killed,
|
||||||
|
smartlist_len(circlist) - n_circuits_killed);
|
||||||
|
|
||||||
smartlist_free(circlist);
|
smartlist_free(circlist);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user