go-ethereum/rpc
Daniel Liu d955e17cd6
rpc: add timeout to rpc client Unsubscribe #30318 (#1019)
Fixes #30156

This adds a repro of the linked issue. I fixed it by adding a timeout
when issuing the call to unsubscribe.

Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
2025-04-29 17:26:34 +08:00
..
testdata rpc: add limit for batch request and response size #26681 (#998) 2025-04-28 17:00:30 +08:00
client.go rpc: add timeout to rpc client Unsubscribe #30318 (#1019) 2025-04-29 17:26:34 +08:00
client_example_test.go upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
client_opt.go eth, rpc: add configurable option for wsMessageSizeLimit #27801 (#1003) 2025-04-28 18:02:12 +08:00
client_opt_test.go node, rpc: add JWT auth support in client #24911 2025-04-28 10:25:07 +08:00
client_test.go rpc: add timeout to rpc client Unsubscribe #30318 (#1019) 2025-04-29 17:26:34 +08:00
context_headers.go rpc: support injecting HTTP headers through context #26023 (#977) 2025-04-24 19:08:16 +08:00
doc.go upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
endpoints.go console: handle eth.coinbase throws #19374 (#953) 2025-04-24 18:11:48 +08:00
errors.go rpc: add method to test for subscription support #25942 (#999) 2025-04-28 17:46:24 +08:00
handler.go rpc: truncate call error data logs #30028 (#1017) 2025-04-29 17:14:14 +08:00
http.go rpc: fix leak by close http body #29223 (#1013) 2025-04-29 17:10:12 +08:00
http_test.go node, rpc: add configurable HTTP request limit #28948 (#1010) 2025-04-29 17:06:06 +08:00
inproc.go rpc: add limit for batch request and response size #26681 (#998) 2025-04-28 17:00:30 +08:00
ipc.go rpc: add limit for batch request and response size #26681 (#998) 2025-04-28 17:00:30 +08:00
ipc_js.go upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
ipc_unix.go rpc: fix ipc max path size #29385 (#1014) 2025-04-29 17:11:33 +08:00
ipc_wasip1.go all: add build tags for wasip1 (#31090) 2025-03-19 18:02:46 +08:00
ipc_windows.go rpc: use go-winio for named pipes #27972 (#1002) 2025-04-28 17:50:26 +08:00
json.go rpc: fix typos (#1011) 2025-04-29 17:07:10 +08:00
metrics.go rpc: fix ns/µs mismatch in metrics (#28649) 2024-12-13 14:00:13 +08:00
server.go rpc: show more error detail for invalidMessageError #30191 (#1018) 2025-04-29 17:25:43 +08:00
server_test.go rpc: fix erroneous error-message in test #28227 (#1004) 2025-04-28 18:04:49 +08:00
service.go rpc: fix typos (#1011) 2025-04-29 17:07:10 +08:00
stdio.go rpc: add limit for batch request and response size #26681 (#998) 2025-04-28 17:00:30 +08:00
subscription.go rpc: add timeout to rpc client Unsubscribe #30318 (#1019) 2025-04-29 17:26:34 +08:00
subscription_test.go rpc: use stable object in notifier test #30193 2025-04-29 17:04:50 +08:00
testservice_test.go eth, rpc: add configurable option for wsMessageSizeLimit #27801 (#1003) 2025-04-28 18:02:12 +08:00
types.go rpc: fix typos (#1011) 2025-04-29 17:07:10 +08:00
types_test.go rpc: add more test cases for arg types #29006 (#1012) 2025-04-29 17:08:05 +08:00
websocket.go rpc: implement Unwrap() for wsHandshakeError #29522 (#1015) 2025-04-29 17:12:33 +08:00
websocket_test.go rpc: close Clients in tests #29512 (#1016) 2025-04-29 17:13:29 +08:00