override the default 30 minute timeout on tport connections for websockets

This commit is contained in:
Anthony Minessale 2013-09-04 04:24:53 +05:00
parent 0dcbc18322
commit 53d17a1312
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1 @@
Fri Aug 23 04:09:44 CDT 2013
Wed Sep 4 04:24:36 CDT 2013

View 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;