Fixed keep-alive hanging after reconfiguration.

This commit is contained in:
Igor Sysoev
2018-05-30 18:46:05 +03:00
parent e54fb892a4
commit ff6ca2a82c
7 changed files with 137 additions and 103 deletions

View File

@@ -106,6 +106,7 @@ typedef struct {
uint32_t ready;
uint32_t batch;
uint32_t count;
/* An accept() interface is cached to minimize memory accesses. */
nxt_work_handler_t accept;
@@ -156,8 +157,7 @@ struct nxt_conn_s {
nxt_task_t task;
nxt_log_t log;
/* STUB: socket.data should be used later. */
void *joint;
nxt_listen_event_t *listen;
nxt_sockaddr_t *remote;
nxt_sockaddr_t *local;