mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-04 18:35:03 +00:00
This fixes the handshake in a scenario where the remote end sends two unknown packets in a row. When this happens, we would previously respond to both with a WHOAREYOU challenge, but keep only the latest sent challenge. Transmission is assumed to be unreliable, so any client that sends two request packets simultaneously has to be prepared to follow up on whichever request leads to a handshake. With this fix, we force them to do the handshake that we can actually complete. Fixes #30581 |
||
|---|---|---|
| .. | ||
| testdata | ||
| crypto.go | ||
| crypto_test.go | ||
| encoding.go | ||
| encoding_test.go | ||
| msg.go | ||
| session.go | ||