Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
#7766 - report peer address on close
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Aug 16, 2019
1 parent 139252c commit 2b07926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,8 @@ namespace eosio {
self->sent_handshake_count = 0;
self->node_id = fc::sha256();
my_impl->sync_master->sync_reset_lib_num( self->shared_from_this() );
fc_dlog( logger, "closed, canceling wait on ${p}", ("p", self->peer_name()) ); // peer_name(), do not hold conn_mtx
fc_ilog( logger, "closing '${a}', ${p}", ("a", self->peer_address())("p", self->peer_name()) );
fc_dlog( logger, "canceling wait on ${p}", ("p", self->peer_name()) ); // peer_name(), do not hold conn_mtx
self->cancel_wait();
{
std::lock_guard<std::mutex> g( self->read_delay_timer_mtx );
Expand Down

0 comments on commit 2b07926

Please sign in to comment.