summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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));