This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
rpc: fix client websocket timeout (
#687
)
pull/694/merge
Alexandre Thibault
7 years ago
committed by
Anton Kaliaev
parent
f9479b34cb
commit
382bead548
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
rpc/lib/server/handlers.go
+ 4
- 0
rpc/lib/server/handlers.go
View File
@ -488,6 +488,10 @@ func (wsc *wsConnection) readRoutine() {
wsc
.
baseConn
.
Close
(
)
}
(
)
wsc
.
baseConn
.
SetPongHandler
(
func
(
m
string
)
error
{
return
wsc
.
baseConn
.
SetReadDeadline
(
time
.
Now
(
)
.
Add
(
wsc
.
readWait
)
)
}
)
for
{
select
{
case
<-
wsc
.
Quit
:
Write
Preview
Loading…
Cancel
Save