Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
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
cpp-libs
libnice
Commits
8842a1fd
Commit
8842a1fd
authored
Jul 30, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stun conncheck timeout
parent
10d4756b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
agent/conncheck.c
agent/conncheck.c
+12
-1
No files found.
agent/conncheck.c
View file @
8842a1fd
...
...
@@ -247,7 +247,8 @@ static gboolean priv_conn_check_tick_stream (Stream *stream, NiceAgent *agent, G
g_debug
(
"Agent %p : STUN connectivity check was cancelled, marking as done."
,
agent
);
p
->
state
=
NICE_CHECK_FAILED
;
}
else
if
(
priv_timer_expired
(
&
p
->
next_tick
,
now
))
{
switch
(
stun_timer_refresh
(
&
p
->
timer
))
{
int
timeout
=
stun_timer_refresh
(
&
p
->
timer
);
switch
(
timeout
)
{
case
-
1
:
/* case: error, abort processing */
g_debug
(
"Agent %p : Retransmissions failed, giving up on connectivity check %p"
,
agent
,
p
);
...
...
@@ -271,6 +272,16 @@ static gboolean priv_conn_check_tick_stream (Stream *stream, NiceAgent *agent, G
p
->
next_tick
=
*
now
;
g_time_val_add
(
&
p
->
next_tick
,
timeout
*
1000
);
keep_timer_going
=
TRUE
;
p
->
traffic_after_tick
=
TRUE
;
/* for keepalive timer */
break
;
}
default:
{
/* note: convert from milli to microseconds for g_time_val_add() */
p
->
next_tick
=
*
now
;
g_time_val_add
(
&
p
->
next_tick
,
timeout
*
1000
);
keep_timer_going
=
TRUE
;
p
->
traffic_after_tick
=
TRUE
;
/* for keepalive timer */
break
;
...
...
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