mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 06:18:35 +00:00
override the default 30 minute timeout on tport connections for websockets
This commit is contained in:
1 parent
0dcbc18322
commit
53d17a1312
2 files changed
+4
-1
No files matched your search
@@ -435,6 +435,9 @@ int tport_ws_init_secondary(tport_t *self, int socket, int accepted,
|
||||
|
||||
self->tp_has_connection = 1;
|
||||
|
||||
/* override the default 30 minute timeout on tport connections */
|
||||
self->tp_params->tpp_idle = UINT_MAX;
|
||||
|
||||
if (setsockopt(socket, SOL_TCP, TCP_NODELAY, (void *)&one, sizeof one) == -1)
|
||||
return *return_reason = "TCP_NODELAY", -1;
|
||||
|
||||
|
||||
Reference in new issue
Block a user