mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
p2p: restore read/write timeouts
They got lost in the transition to rlpxFrameRW.
This commit is contained in:
@@ -21,6 +21,11 @@ var (
|
||||
zero16 = make([]byte, 16)
|
||||
)
|
||||
|
||||
// rlpxFrameRW implements a simplified version of RLPx framing.
|
||||
// chunked messages are not supported and all headers are equal to
|
||||
// zeroHeader.
|
||||
//
|
||||
// rlpxFrameRW is not safe for concurrent use from multiple goroutines.
|
||||
type rlpxFrameRW struct {
|
||||
conn io.ReadWriter
|
||||
enc cipher.Stream
|
||||
|
||||
Reference in New Issue
Block a user