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

Commit

Permalink
Merge pull request #10961 from EOSIO/EPE-1835-net_plugin-shutdown-2.0
Browse files Browse the repository at this point in the history
net_plugin: shutdown segfault fix - 2.0
  • Loading branch information
heifner authored Dec 15, 2021
2 parents 55e99c2 + 383244f commit a9f8ce0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1351,8 +1351,7 @@ namespace eosio {
void connection::sync_timeout( boost::system::error_code ec ) {
if( !ec ) {
my_impl->sync_master->sync_reassign_fetch( shared_from_this(), benign_other );
} else if( ec == boost::asio::error::operation_aborted ) {
} else {
} else if( ec != boost::asio::error::operation_aborted ) { // don't log on operation_aborted, called on destroy
fc_elog( logger, "setting timer for sync request got error ${ec}", ("ec", ec.message()) );
}
}
Expand All @@ -1375,11 +1374,7 @@ namespace eosio {
void connection::fetch_timeout( boost::system::error_code ec ) {
if( !ec ) {
my_impl->dispatcher->retry_fetch( shared_from_this() );
} else if( ec == boost::asio::error::operation_aborted ) {
if( !connected() ) {
fc_dlog( logger, "fetch timeout was cancelled due to dead connection" );
}
} else {
} else if( ec != boost::asio::error::operation_aborted ) { // don't log on operation_aborted, called on destroy
fc_elog( logger, "setting timer for fetch request got error ${ec}", ("ec", ec.message() ) );
}
}
Expand Down

0 comments on commit a9f8ce0

Please sign in to comment.