pyquarkchain
pyquarkchain copied to clipboard
improve devp2p TCP sockets tracking
a lot of things can go wrong when establishing p2p connections: failed handshake, wrong version, mismatching serialization, we shall ensure all opened TCP sockets are closed properly
one of the fixes made was https://github.com/QuarkChain/pyquarkchain/pull/397, but it's a bit hacky and we should audit all places that a file/socket was opened