<div dir="auto">Hello,<div dir="auto"><br></div><div dir="auto">I am hacking the ngx_http_auth_request module ( <a href="https://www.nginx.com/resources/wiki/extending/examples/auth_request/">https://www.nginx.com/resources/wiki/extending/examples/auth_request/</a> ) so that as soon as the URL is parsed, I transfer the connection fd to another processo through a AF_UNIX socket. </div><div dir="auto"><br></div><div dir="auto">Everything is done in the ngx_http_auth_request_handler function. </div><div dir="auto"><br></div><div dir="auto">I see the other process receiving the file descriptor, I must now tell nginx to stop processing the request, to close the socket and to do nothing. The response will be generate by the other process. </div><div dir="auto"><br></div><div dir="auto">Is invoking ngx_close_socket r->connection->fd) and returning NGX_ABORT the correct way of doing it? </div><div dir="auto"><br></div><div dir="auto">Thank you, </div><div dir="auto"><br></div><div dir="auto">Ottavio </div></div>