summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_h1proto.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-12-28 20:12:13 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-12-28 20:12:13 +0300
commit795a244bd04b67157c106a4009a127b6d03a4081 (patch)
tree12a98ed315e1f72deda2ced2187c296c10370446 /src/nxt_h1proto.c
parentecba3d80f942ae89cf168753e75faf6715e75d1a (diff)
downloadunit-795a244bd04b67157c106a4009a127b6d03a4081.tar.gz
unit-795a244bd04b67157c106a4009a127b6d03a4081.tar.bz2
Disabled Nagle algorithm for keep-alive connections.
Diffstat (limited to 'src/nxt_h1proto.c')
-rw-r--r--src/nxt_h1proto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_h1proto.c b/src/nxt_h1proto.c
index 3d86b5dd..be9892c1 100644
--- a/src/nxt_h1proto.c
+++ b/src/nxt_h1proto.c
@@ -852,6 +852,10 @@ nxt_h1p_keepalive(nxt_task_t *task, nxt_h1proto_t *h1p, nxt_conn_t *c)
nxt_debug(task, "h1p keepalive");
+ if (!c->tcp_nodelay) {
+ nxt_conn_tcp_nodelay_on(task, c);
+ }
+
b = h1p->buffers;
nxt_memzero(&h1p->parser, sizeof(nxt_h1proto_t));