diff options
author | Igor Sysoev <igor@sysoev.ru> | 2020-09-18 13:20:05 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2020-09-18 13:20:05 +0300 |
commit | 6cfbf4ba791000705efeed4d29a212f6bd86821c (patch) | |
tree | 7fcc08acbf4685e87a98295f4f1e87f8504ddf52 | |
parent | 09f4db1fc0ae5c1ad649316c1b97934af628736b (diff) | |
download | unit-6cfbf4ba791000705efeed4d29a212f6bd86821c.tar.gz unit-6cfbf4ba791000705efeed4d29a212f6bd86821c.tar.bz2 |
Fixed segmentation fault during reconfiguration.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_h1proto.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/nxt_h1proto.c b/src/nxt_h1proto.c index f340ea1e..94b74929 100644 --- a/src/nxt_h1proto.c +++ b/src/nxt_h1proto.c @@ -1749,7 +1749,15 @@ nxt_h1p_conn_timer_value(nxt_conn_t *c, uintptr_t data) joint = c->listen->socket.data; - return nxt_value_at(nxt_msec_t, joint->socket_conf, 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; } |