forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug API returns execution timeout error sometimes #358
Comments
gzliudan
changed the title
debug api return execution timeout error sometimes
debug API returns execution timeout error sometimes
Nov 14, 2023
16 tasks
The default write timeout of RPC http server is 10 secondes: func NewHTTPServer(cors []string, vhosts []string, srv *Server) *http.Server {
// Wrap the CORS-handler within a host-handler
handler := newCorsHandler(srv, cors)
handler = newVHostHandler(vhosts, handler)
return &http.Server{
Handler: handler,
ReadTimeout: 5 * time.Second,
WriteTimeout: 10 * time.Second,
IdleTimeout: 120 * time.Second,
}
} But the debug API costs very long time sometime. With PR #363 patched on my local node, I found: The above response time is 86 secondes. |
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this issue
Nov 27, 2023
Closed by #363 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The debug API returns "execution timeout" error in result sometimes as reported by the post. These affected APIs include:
Here are some test cases:
debug_traceBlockByNumber
request
response
debug_traceTransaction
request
response
The text was updated successfully, but these errors were encountered: