override the default 30 minute timeout on tport connections for websockets
This commit is contained in:
parent
0dcbc18322
commit
53d17a1312
|
@ -1 +1 @@
|
|||
Fri Aug 23 04:09:44 CDT 2013
|
||||
Wed Sep 4 04:24:36 CDT 2013
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue