Skip to content
Permalink
Browse files

epee: close connection when the peer has done so

This fixes rapid reconnections failing as the peer hasn't yet
worked out the other side is gone, and will reject "duplicate"
connections until a timeout.
  • Loading branch information...
moneromooo-monero committed Nov 7, 2019
1 parent a48ef0a commit d1bb9591b142a03383ab789ee344963061776403
Showing with 1 addition and 2 deletions.
  1. +1 −2 contrib/epee/include/net/abstract_tcp_server2.inl
@@ -410,8 +410,7 @@ PRAGMA_WARNING_DISABLE_VS(4355)
else
{
_dbg3("[sock " << socket().native_handle() << "] peer closed connection");
if (m_ready_to_close)
shutdown();
shutdown();
}
m_ready_to_close = true;
}

0 comments on commit d1bb959

Please sign in to comment.
You can’t perform that action at this time.