Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
galene
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
galene
Commits
617aee32
Commit
617aee32
authored
Jan 08, 2021
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce ping timetout to 45 to 55s.
Thanks to Jeroen van Veen for the debugging.
parent
4b8a509a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
rtpconn/webclient.go
rtpconn/webclient.go
+5
-2
No files found.
rtpconn/webclient.go
View file @
617aee32
...
@@ -902,10 +902,13 @@ func clientLoop(c *webClient, ws *websocket.Conn) error {
...
@@ -902,10 +902,13 @@ func clientLoop(c *webClient, ws *websocket.Conn) error {
return
errors
.
New
(
"unexpected action"
)
return
errors
.
New
(
"unexpected action"
)
}
}
case
<-
ticker
.
C
:
case
<-
ticker
.
C
:
if
time
.
Since
(
readTime
)
>
90
*
time
.
Second
{
if
time
.
Since
(
readTime
)
>
75
*
time
.
Second
{
return
errors
.
New
(
"client is dead"
)
return
errors
.
New
(
"client is dead"
)
}
}
if
time
.
Since
(
readTime
)
>
60
*
time
.
Second
{
// Some reverse proxies timeout connexions at 60
// seconds, make sure we generate some activity
// after 55s at most.
if
time
.
Since
(
readTime
)
>
45
*
time
.
Second
{
err
:=
c
.
write
(
clientMessage
{
err
:=
c
.
write
(
clientMessage
{
Type
:
"ping"
,
Type
:
"ping"
,
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment