File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 227
227
# define PJ_TURN_MAX_TCP_CONN_CNT 8
228
228
#endif
229
229
230
+ /**
231
+ * Default timeout value (in seconds) for TURN TLS connection.
232
+ *
233
+ * Default: 5 seconds
234
+ */
235
+ #ifndef PJ_TURN_TLS_DEFAULT_TIMEOUT
236
+ # define PJ_TURN_TLS_DEFAULT_TIMEOUT 5
237
+ #endif
238
+
230
239
/* **************************************************************************
231
240
* ICE CONFIGURATION
232
241
*/
Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ PJ_DEF(void) pj_turn_sock_tls_cfg_default(pj_turn_sock_tls_cfg *tls_cfg)
217
217
pj_bzero (tls_cfg , sizeof (* tls_cfg ));
218
218
pj_ssl_sock_param_default (& tls_cfg -> ssock_param );
219
219
tls_cfg -> ssock_param .proto = PJ_TURN_TLS_DEFAULT_PROTO ;
220
+ tls_cfg -> ssock_param .timeout .sec = PJ_TURN_TLS_DEFAULT_TIMEOUT ;
220
221
}
221
222
222
223
PJ_DEF (void ) pj_turn_sock_tls_cfg_dup (pj_pool_t * pool ,
You can’t perform that action at this time.
0 commit comments