You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why should this feature exist?
What are the use-cases?
For now, we don't have any context management in the whole request process. It may cause a whole blocking reaction in the server.
For example, if we call the eth_call method, the database may slow during the query process. If we don't add context management for the request processing make the request cancelable. We may consume the resources in the connection pool very fast. The following request may block forever
Rationale
Why should this feature exist?
What are the use-cases?
For now, we don't have any context management in the whole request process. It may cause a whole blocking reaction in the server.
For example, if we call the
eth_call
method, the database may slow during the query process. If we don't add context management for the request processing make the request cancelable. We may consume the resources in the connection pool very fast. The following request may block foreverAbout the connection pool part, FYI https://github.com/jackc/puddle/blob/v1.3.0/pool.go#L347-L354
Implementation
We can following the go-eth lib to add conetxt management FYI
https://github.com/ethereum/go-ethereum/blob/master/eth/api_backend.go#L118
https://github.com/ethereum/go-ethereum/blob/master/rpc/http.go#L326-L335
The text was updated successfully, but these errors were encountered: