Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
d82fd211
Commit
d82fd211
authored
4 years ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
pjproject: detect all possible keep-alive errors
Change-Id: I173d53fc81e5c400693d10131bca102b3e95aef8
parent
98832404
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/src/pjproject/0003-add-tcp-keep-alive.patch
+9
-10
9 additions, 10 deletions
contrib/src/pjproject/0003-add-tcp-keep-alive.patch
with
9 additions
and
10 deletions
contrib/src/pjproject/0003-add-tcp-keep-alive.patch
+
9
−
10
View file @
d82fd211
...
...
@@ -246,10 +246,10 @@ index ab83af956..966a9fc43 100644
PJ_EXPORT_SYMBOL(PJ_SOL_UDP)
PJ_EXPORT_SYMBOL(PJ_SOL_IPV6)
diff --git a/pjnath/include/pjnath/ice_session.h b/pjnath/include/pjnath/ice_session.h
index
39c197c29..d44e3e896
100644
index
4cccd7c64..9f29b828e
100644
--- a/pjnath/include/pjnath/ice_session.h
+++ b/pjnath/include/pjnath/ice_session.h
@@ -6
39
,6 +6
39
,11 @@
typedef struct pj_ice_sess_cb
@@ -6
28
,6 +6
28
,11 @@
typedef struct pj_ice_sess_cb
pj_ice_sess_checklist *clist,
unsigned check_id);
...
...
@@ -280,14 +280,14 @@ index 9eb74b35f..1269442cd 100644
diff --git a/pjnath/src/pjnath/ice_session.c b/pjnath/src/pjnath/ice_session.c
index
a50c21c94..4ba44f38
b 100644
index
20ba47a48..f1094932
b 100644
--- a/pjnath/src/pjnath/ice_session.c
+++ b/pjnath/src/pjnath/ice_session.c
@@ -1435,6 +1435,12 @@
static void ice_keep_alive(pj_ice_sess *ice, pj_bool_t send_now)
PJ_FALSE, PJ_FALSE,
&the_check->rcand->addr,
addr_len, tdata);
+ if (status
== 120032
) {
+ if (status
!= PJ_SUCCESS && status != PJ_EPENDING && status != PJ_EBUSY
) {
+ if (ice->cb.on_ice_destroy) {
+ ice->cb.on_ice_destroy(ice);
+ }
...
...
@@ -297,7 +297,7 @@ index a50c21c94..4ba44f38b 100644
/* Restore FINGERPRINT usage */
pj_stun_session_use_fingerprint(comp->stun_sess, saved);
diff --git a/pjnath/src/pjnath/ice_strans.c b/pjnath/src/pjnath/ice_strans.c
index 8
ba
217
2e5..4adc9bc70
100644
index 8217
5e9e8..c1647bebf
100644
--- a/pjnath/src/pjnath/ice_strans.c
+++ b/pjnath/src/pjnath/ice_strans.c
@@ -98,6 +98,7 @@
static pj_uint16_t GETVAL16H(const pj_uint8_t *buf1, const pj_uint8_t *buf2)
...
...
@@ -308,15 +308,15 @@ index 8ba2172e5..4adc9bc70 100644
static void on_ice_complete(pj_ice_sess *ice, pj_status_t status);
static pj_status_t ice_tx_pkt(pj_ice_sess *ice,
unsigned comp_id,
@@ -13
22
,6 +13
23
,7 @@
PJ_DEF(pj_status_t) pj_ice_strans_init_ice(pj_ice_strans *ice_st,
ice_cb.
select_turn_dataconn = &ice_select_turn_datacon
n;
@@ -13
13
,6 +13
14
,7 @@
PJ_DEF(pj_status_t) pj_ice_strans_init_ice(pj_ice_strans *ice_st,
ice_cb.
wait_tcp_connection = &ice_wait_tcp_connectio
n;
ice_cb.reconnect_tcp_connection = &ice_reconnect_tcp_connection;
ice_cb.close_tcp_connection = &ice_close_tcp_connection;
+ ice_cb.on_ice_destroy = &on_ice_destroy;
#endif
/* Create! */
@@ -193
8
,6 +19
40
,14 @@
PJ_DEF(pj_status_t) pj_ice_strans_sendto2(pj_ice_strans *ice_st,
@@ -193
5
,6 +19
37
,14 @@
PJ_DEF(pj_status_t) pj_ice_strans_sendto2(pj_ice_strans *ice_st,
dst_addr_len, PJ_TRUE, PJ_FALSE);
}
...
...
@@ -332,5 +332,4 @@ index 8ba2172e5..4adc9bc70 100644
/*
* Callback called by ICE session when ICE processing is complete, either
--
2.24.1
2.26.2
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment