Best way to terminate handling a request

2019-01-16 Thread Ottavio Campana
Hello, I am hacking the ngx_http_auth_request module ( https://www.nginx.com/resources/wiki/extending/examples/auth_request/ ) so that as soon as the URL is parsed, I transfer the connection fd to another processo through a AF_UNIX socket. Everything is done in the ngx_http_auth_request_handler f

Re: Is there a way to get the raw request from the client in a handler?

2019-01-09 Thread Ottavio Campana
Il giorno mer 9 gen 2019 alle ore 14:23 Maxim Dounin ha scritto: > Hello! > > On Wed, Jan 09, 2019 at 10:52:11AM +0100, Ottavio Campana wrote: > > > I am proceeding developing my module. > > > > Is there a way to get the raw HTTP request from a ngx_http_request_

Is there a way to get the raw request from the client in a handler?

2019-01-09 Thread Ottavio Campana
Hello, I am proceeding developing my module. Is there a way to get the raw HTTP request from a ngx_http_request_t ? Thank you, Ottavio -- Non c'è più forza nella normalità, c'è solo monotonia ___ nginx mailing list nginx@nginx.org http://mailman.ngi

How do I get the file descriptor of an incoming request?

2019-01-04 Thread Ottavio Campana
Hello, I am trying to write my first module for nginx. I have a ngx_http_request_t *r . How can I get the file descriptor where the request comes from? Thank you, Ottavio -- Non c'è più forza nella normalità, c'è solo monotonia ___ nginx mailing list

Transfering a fd to a process to get better performance than with mod_proxy

2018-12-12 Thread Ottavio Campana
Hello, I have the current scenario: nginx proxies a process that runs internally and is bound to the loopback interface. Everything works, but I am facing performance issues, because the processor is old and slow. I would like to skip the proxy and the read/write operations performed by mod_proxy