neoneo-go/pkg/network
Roman Khimov 734338ad70 network: move Version sending to the tcp transport
We have a race between reader and writer goroutines for the same connection
that leads to handshake failures when reader is faster to read the incoming
version (and try to reply to it) than writer is to write our own Version:

WARN[0000] peer disconnected                             addr="172.200.0.4:20334" peerCount=5 reason="invalid handshake: tried to send VersionAck, but didn't send Version yet

Fix it by moving Version sending before the reader loop starts.
2019-11-29 11:05:42 +03:00
..
metrics reformat code at pkg/network/metrics/metrics.go 2019-11-18 17:17:21 +03:00
payload util: implement io.Serializable for Uint256 2019-11-14 14:20:38 +03:00
blockqueue.go monitoring: add prometheus monitoring 2019-10-29 20:51:17 +03:00
blockqueue_test.go network: add block queue 2019-09-27 13:00:09 +03:00
discovery.go monitoring: add prometheus monitoring 2019-10-29 20:51:17 +03:00
discovery_test.go network: rework discovery with rwmutex, add test 2019-10-28 13:37:27 +03:00
helper_test.go core/crypto: add validators and interop for validators 2019-11-21 15:23:35 +03:00
message.go network: implement Consensus payloads 2019-11-13 17:27:25 +03:00
message_test.go Node improvements (#47) 2018-03-14 10:36:59 +01:00
peer.go network: split Peer's NetAddr into RemoteAddr and PeerAddr 2019-11-06 15:26:24 +03:00
prometheus.go monitoring: add prometheus monitoring 2019-10-29 20:51:17 +03:00
relay_reason.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
server.go network: move Version sending to the tcp transport 2019-11-29 11:05:42 +03:00
server_config.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00
server_test.go server: add log-path and address configuration 2019-11-06 15:58:54 +03:00
tcp_peer.go network: write messages atomically 2019-11-18 09:31:00 +03:00
tcp_peer_test.go network: wait for both Version messages before ACKing 2019-11-06 18:05:50 +03:00
tcp_transport.go network: move Version sending to the tcp transport 2019-11-29 11:05:42 +03:00
transport.go Fixed some networking issues (#68) 2018-04-13 12:14:08 +02:00