From 439bf7df11a9e847cbd42e1503c6ed8d74f7ab09 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Wed, 4 Oct 2017 15:02:32 +0300 Subject: Breaking read loop by nxt_port_read_close(). Port message handler may perform fork() and then close port read file descriptor and enable write on same event fd. Next read attempt in this case may cause different errors in log file. --- src/nxt_port_socket.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nxt_port_socket.c') diff --git a/src/nxt_port_socket.c b/src/nxt_port_socket.c index 880cdf0f..dce97e83 100644 --- a/src/nxt_port_socket.c +++ b/src/nxt_port_socket.c @@ -461,6 +461,7 @@ nxt_port_read_enable(nxt_task_t *task, nxt_port_t *port) void nxt_port_read_close(nxt_port_t *port) { + port->socket.read_ready = 0; nxt_socket_close(port->socket.task, port->pair[0]); port->pair[0] = -1; } -- cgit