plugeth/rpc
Valentin Trinqué abd49a6c48
rpc: set Request.GetBody for client requests (#24292)
When talking to an HTTP2 server, there are situations where it needs to
"rewind" the Request.Body. To allow this, we have to set up the Request.GetBody
function to return a brand new instance of the body.

If not set, we can end up with the following error:

    http2: Transport: cannot retry err [http2: Transport received Server's graceful shutdown GOAWAY] after Request.Body was written; define Request.GetBody to avoid this error

See this commit for more information: cffdcf672a
2022-01-27 10:59:05 +01:00
..
testdata
client_example_test.go
client_test.go core, miner, rpc, eth: fix goroutine leaks in tests (#24211) 2022-01-21 12:22:44 +01:00
client.go
constants_unix_nocgo.go
constants_unix.go
doc.go
endpoints.go
errors.go
handler.go
http_test.go
http.go rpc: set Request.GetBody for client requests (#24292) 2022-01-27 10:59:05 +01:00
inproc.go
ipc_js.go
ipc_unix.go
ipc_windows.go
ipc.go
json.go
metrics.go
server_test.go
server.go
service.go
stdio.go
subscription_test.go
subscription.go
testservice_test.go
types_test.go
types.go
websocket_test.go
websocket.go