override the default 30 minute timeout on tport connections for websockets

This commit is contained in:
Anthony Minessale committed 2013-09-04 04:24:53 +05:00
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;