tendermint/rpc/lib/client
Anton Kaliaev 2fd8496bc1
correct handling of pings and pongs
server:
- always has read & write timeouts
- ping handler never blocks the reader (see A)
- sends regular pings to check up on a client

A:
at some point server write buffer can become full, so in order not to
block reads from a client (see
https://github.com/gorilla/websocket/issues/97), server may skip some
pongs. As a result, client may disconnect. But you either have to do
that or block the reader. There is no third way.

client:
- optional read & write timeouts
- optional ping/pong to measure latency
2017-08-10 17:53:49 -04:00
..
args_test.go rpc -> rpc/lib and rpc/tendermint -> rpc 2017-04-26 19:57:33 -04:00
http_client.go httpDialer accepts no prefix or http:// as tcp:// 2017-06-22 20:56:57 +02:00
ws_client.go correct handling of pings and pongs 2017-08-10 17:53:49 -04:00
ws_client_test.go correct handling of pings and pongs 2017-08-10 17:53:49 -04:00