mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-21 17:01:35 +00:00
rpc: fix client websocket timeout (#687)
This commit is contained in:
committed by
Anton Kaliaev
parent
f9479b34cb
commit
382bead548
@ -488,6 +488,10 @@ func (wsc *wsConnection) readRoutine() {
|
|||||||
wsc.baseConn.Close()
|
wsc.baseConn.Close()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
wsc.baseConn.SetPongHandler(func(m string) error {
|
||||||
|
return wsc.baseConn.SetReadDeadline(time.Now().Add(wsc.readWait))
|
||||||
|
})
|
||||||
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-wsc.Quit:
|
case <-wsc.Quit:
|
||||||
|
Reference in New Issue
Block a user