]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
override the default 30 minute timeout on tport connections for websockets
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 3 Sep 2013 23:24:53 +0000 (04:24 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 3 Sep 2013 23:24:53 +0000 (04:24 +0500)
libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c

index 63ebb2503bf7386bc0a5ba447512282d00a9180c..ce35c3a2eeb1c491419a8593dfedfcab23f9368c 100644 (file)
@@ -1 +1 @@
-Fri Aug 23 04:09:44 CDT 2013
+Wed Sep  4 04:24:36 CDT 2013
index 6d0c750fd46ef86ec5f42e6ebea39974935d7cb7..1f16d0f18cc79c14180954aeb93804348927be43 100644 (file)
@@ -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;