Fixed segmentation fault during reconfiguration.
@@ -1749,9 +1749,17 @@ nxt_h1p_conn_timer_value(nxt_conn_t *c, uintptr_t data)
joint = c->listen->socket.data;
+ if (nxt_fast_path(joint != NULL)) {
return nxt_value_at(nxt_msec_t, joint->socket_conf, data);
}
+ /*
+ * Listening socket had been closed while
+ * connection was in keep-alive state.
+ */
+ return 1;
+}
+
static void
nxt_h1p_keepalive(nxt_task_t *task, nxt_h1proto_t *h1p, nxt_conn_t *c)
