diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-12-03 14:40:37 +0200 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2018-12-03 14:40:37 +0200 |
commit | 25f3b8244582c49db71c618c3859d7e7a89cd762 (patch) | |
tree | 8eff5feadfb1c2276fb6d8d52e7a2200f619fe00 /src/core | |
parent | 9369152aae9527cc3764cac8688f258b11bd503d (diff) | |
download | tor-25f3b8244582c49db71c618c3859d7e7a89cd762.tar.gz tor-25f3b8244582c49db71c618c3859d7e7a89cd762.zip |
More logging for #28229
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/mainloop/connection.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c index 66a8b5147f..9d5bad7d8d 100644 --- a/src/core/mainloop/connection.c +++ b/src/core/mainloop/connection.c @@ -2907,6 +2907,10 @@ retry_all_listeners(smartlist_t *new_conns, int close_all_noncontrol) retval = -1; #ifdef ENABLE_LISTENER_REBIND + if (smartlist_len(replacements)) + log_debug(LD_NET, "%d replacements - starting rebinding loop.", + smartlist_len(replacements)); + SMARTLIST_FOREACH_BEGIN(replacements, listener_replacement_t *, r) { int addr_in_use = 0; int skip = 0; @@ -2918,8 +2922,11 @@ retry_all_listeners(smartlist_t *new_conns, int close_all_noncontrol) connection_listener_new_for_port(r->new_port, &skip, &addr_in_use); connection_t *old_conn = r->old_conn; - if (skip) + if (skip) { + log_debug(LD_NET, "Skipping creating new listener for %s:%d", + old_conn->address, old_conn->port); continue; + } connection_close_immediate(old_conn); connection_mark_for_close(old_conn); |