提交 53d17a13 authored 作者: Anthony Minessale's avatar Anthony Minessale

override the default 30 minute timeout on tport connections for websockets

上级 0dcbc183
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, ...@@ -435,6 +435,9 @@ int tport_ws_init_secondary(tport_t *self, int socket, int accepted,
self->tp_has_connection = 1; 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) if (setsockopt(socket, SOL_TCP, TCP_NODELAY, (void *)&one, sizeof one) == -1)
return *return_reason = "TCP_NODELAY", -1; return *return_reason = "TCP_NODELAY", -1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论