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 #8527 from EOSIO/net-plugin-socket-close-dev
Browse files Browse the repository at this point in the history
Handle socket close before async callback - develop
  • Loading branch information
heifner committed Jan 29, 2020
2 parents a39a619 + f39dd3d commit 2ec9956
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/net_plugin/net_plugin.cpp
Expand Up @@ -1105,6 +1105,7 @@ namespace eosio {
if( !c->socket_is_open() || socket != c->socket ) {
fc_ilog( logger, "async write socket ${r} before callback: ${p}",
("r", c->socket_is_open() ? "changed" : "closed")("p", c->peer_name()) );
c->close();
return;
}

Expand Down

0 comments on commit 2ec9956

Please sign in to comment.