dcrd/internal/rpcserver
Dave Collins 754b7cc287
rpcserver: Update websocket ping timeout handling.
Currently, timeouts when responding to a websocket ping control message
with a pong message cause the websocket client to be disconnected, but
these types of failures are nearly always temporary network errors due
to things such as congestion and thus should not result in
disconnection.

In order to make that the case, this modifies the websocket ping handler
to ignore timeout network errors when attempting to respond with a pong
and also takes this opportunity to increase the timeout to 5 seconds
from 1 second to support multi-continent communication.
2022-01-07 23:10:49 -06:00
..
testdata rpcserver: Add handleSearchRawTransactions tests. 2020-08-29 22:03:04 -05:00
doc.go rpcserver: Move to internal. 2020-07-24 23:29:59 -05:00
interface.go multi: Implement DCP0010 subsidy consensus vote. 2021-12-16 12:26:21 -06:00
log.go rpcserver: Add logging to internal package. 2019-10-24 21:37:27 -05:00
README.md rpcserver: Move to internal. 2020-07-24 23:29:59 -05:00
rpcserver_test.go multi: update build tags to pref. go1.17 syntax. 2021-10-19 20:21:44 -05:00
rpcserver.go rpcserver: Update websocket ping timeout handling. 2022-01-07 23:10:49 -06:00
rpcserverhandlers_test.go multi: Implement DCP0010 subsidy consensus vote. 2021-12-16 12:26:21 -06:00
rpcserverhelp_test.go rpcserver: add handleVersion, handleHelp rpc tests. 2021-01-16 18:52:34 -06:00
rpcserverhelp.go dcrjson: Introduce v4 module. 2021-09-14 13:38:54 -05:00
rpcwebsocket.go rpcserver: Update websocket ping timeout handling. 2022-01-07 23:10:49 -06:00
treasury_test.go rpcserver: Tune large tspend test amount 2021-08-13 00:45:56 -05:00

rpcserver

Build Status ISC License Doc

Overview

Package rpcserver includes all RPC server interfaces, types, and pieces of code pertaining to implementing the RPC server.

License

Package rpcserver is licensed under the copyfree ISC License.