mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
rpc: tolerate connection reset error in TestServerWebsocketReadLimit and triedb:pathdb:cross-platformbug
This commit is contained in:
parent
23af3d3d19
commit
b4a280353d
1 changed files with 2 additions and 1 deletions
|
|
@ -524,7 +524,8 @@ func newSingleTrienodeHistoryReader(id uint64, reader ethdb.AncientReader, keyRa
|
|||
}
|
||||
keyStart := int(keyRange.start)
|
||||
keyLimit := int(keyRange.limit)
|
||||
if keyLimit == math.MaxUint32 {
|
||||
const maxKeyLimit = int(^uint32(0))
|
||||
if keyLimit == maxKeyLimit {
|
||||
keyLimit = len(keyData)
|
||||
}
|
||||
if len(keyData) < keyStart || len(keyData) < keyLimit {
|
||||
|
|
|
|||
Loading…
Reference in a new issue