eqlabs / pathfinder

A Starknet full node written in Rust
https://eqlabs.github.io/pathfinder/
Other
619 stars 227 forks source link

fix(p2p_stream): change default request timeout #2055

Closed kkovaacs closed 3 months ago

kkovaacs commented 3 months ago

10 seconds is not enough for streaming/processing all responses of a request for all transactions or classes of a 100 block range.

Currently there's a single timeout for the whole duration of the subchannel: that is the whole request/response stream has to be completed before timing out. Ideally we'd be implementing a different kind of timeout for the request-response protocol: one that only times out if no request is received or responses are received for some time.