Send disconnection reason when closing connection with a node #1133
Labels
Discussion
Initial issue state - proposed but not yet accepted
Enhancement
Type - Changes that may affect performance, usability or add new features to existing modules.
P2P
Module - peer-to-peer message exchange and network optimisations, at TCP or UDP level (not HTTP).
(Originally from @decentralisedkev on #366)
Summary
When a node sends an incompatible message during the handshake or a malformed message, the node silently disconnects. This makes it hard to debug why two nodes are not communicating, or why one node has disconnected from another.
Do you have any solution you want to propose?
If a node disconnects from another node, due to the message that that node had sent, they should send a
reject
message, stating why the node was disconnected and a byte to signify the reason for the computer.Where in the software does this update applies to?
The text was updated successfully, but these errors were encountered: