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

Roman Arutyunyan arut at nginx.com
Sat Jan 5 12:39:34 UTC 2019


Hello Ottavio,

On Fri, Jan 04, 2019 at 06:18:51PM +0100, Ottavio Campana wrote:
> 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?

r->connection->fd

> Thank you,
> 
> Ottavio
> 
> -- 
> Non c'è più forza nella normalità, c'è solo monotonia

> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


-- 
Roman Arutyunyan


More information about the nginx mailing list