Michael Kaplan
d8f9801305
rpc: avoid unnecessary RST_STREAM, PING frames sent by client ( #33122 )
...
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run
Context from Cloudflare blog:
https://blog.cloudflare.com/go-and-enhance-your-calm/#reading-bodies-in-go-can-be-unintuitive
We were able to reproduce the same issue discussed by Cloudflare in
their recent blog post above using the `ethclient`.
2025-11-11 15:54:36 +01:00
Håvard Anda Estensen
e20150f888
rpc: run tests in parallel ( #30384 )
...
Continuation of https://github.com/ethereum/go-ethereum/pull/30381
2024-11-19 13:43:33 +01:00
Felix Lange
69f5d5ba1f
node, rpc: add configurable HTTP request limit ( #28948 )
...
Adds a configurable HTTP request limit, and bumps the engine default
2024-02-07 21:06:38 +01:00
Delweng
117530b0e6
metrics/librato: ensure resp.body closed ( #26969 )
...
This change ensures that we call Close on a http response body, in various places in the source code (mostly tests)
2023-03-27 07:44:41 -04:00
storyicon
add337e0f7
rpc: support injecting HTTP headers through context ( #26023 )
...
This adds a way to specify HTTP headers per request.
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-11-16 15:22:12 +01:00
Felix Lange
5bcbb2980b
rpc: add PeerInfo ( #24255 )
...
This replaces the sketchy and undocumented string context keys for HTTP requests
with a defined interface. Using string keys with context is discouraged because
they may clash with keys created by other packages.
We added these keys to make connection metadata available in the signer, so this
change also updates signer/core to use the new PeerInfo API.
2022-01-20 12:45:07 +01:00
ryanc414
9357280fce
rpc: add HTTPError type for HTTP error responses ( #22677 )
...
The new error type is returned by client operations contains details of
the response error code and response body.
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-04-21 15:51:30 +02:00
Felix Lange
27b31371d4
rpc: add separate size limit for websocket ( #22385 )
...
This makes the WebSocket message size limit independent of the
limit used for HTTP requests. The new limit for WebSocket messages
is 15MB.
2021-02-26 13:40:35 +01:00
Steven E. Harris
9887edd580
rpc: add explicit 200 response for empty HTTP GET ( #20952 )
2020-04-28 10:43:21 +02:00
Péter Szilágyi
555f42cfd8
rpc: enforce the 128KB request limits on websockets too
2018-03-13 13:55:26 +02:00
Vitaly V
f258a21a63
rpc: use method constants instead of literal strings ( #15652 )
2017-12-12 19:12:32 +01:00
Zach
3da1bf8ca1
all: use gometalinter.v2, fix new gosimple issues ( #15650 )
2017-12-12 19:05:47 +01:00
Péter Szilágyi
3c6b9c5d72
rpc: minor cleanups to RPC PR
2017-11-17 14:25:02 +02:00
Armani Ferrante
c5b8569707
rpc: disallow PUT and DELETE on HTTP ( #15501 )
...
Fixes #15493
2017-11-17 13:07:11 +01:00