monero/src/p2p
moneromooo-monero 21fe6a289b
p2p: fix frequent weak_ptr exception on connection
When a handshake fails, it can fail due to timeout or destroyed
connection, in which case the connection will be, or already is,
closed, and we don't want to do it twice.
Additionally, when closing a connection directly from the top
level code, ensure the connection is gone from the m_connects
list so it won't be used again.

AFAICT this is now clean in netstat, /proc/PID/fd and print_cn.

This fixes a noisy (but harmless) exception.
2020-03-31 20:29:41 +00:00
..
CMakeLists.txt Update 2019 copyright 2019-03-05 22:05:34 +01:00
net_node_common.h Change to Tx diffusion (Dandelion++ fluff) instead of flooding 2019-11-04 09:23:20 +00:00
net_node.cpp Change to Tx diffusion (Dandelion++ fluff) instead of flooding 2019-11-04 09:23:20 +00:00
net_node.h Merge pull request #6295 2020-03-27 12:30:06 -07:00
net_node.inl p2p: fix frequent weak_ptr exception on connection 2020-03-31 20:29:41 +00:00
net_peerlist_boost_serialization.h daemon, wallet: new pay for RPC use system 2019-10-25 09:34:38 +00:00
net_peerlist.cpp Adding initial support for broadcasting transactions over Tor 2019-01-28 23:56:33 +00:00
net_peerlist.h Merge pull request #6295 2020-03-27 12:30:06 -07:00
p2p_protocol_defs.h p2p: remove old debug commands 2020-03-20 22:09:44 -07:00
stdafx.h Update 2019 copyright 2019-03-05 22:05:34 +01:00