Welcome! Log In Create A New Profile

Advanced

Issuing an http request to distant server from a timer handler

MAGNIEN, Thierry
September 11, 2012 05:22AM
Hi,

I'm writing a module that needs to periodically request a distant HTTP server. I've setup an event handler through ngx_add_timer so that the handler is called every N seconds.

Is there a simple way to make this HTTP request from the handler ? I've looked at ngx_http_named_location but this needs a request as argument and I don't have such in my event handler.

Can I just create/allocate a new request and pass it to ngx_http_named_location ?

Thanks for your help,
Thierry

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Issuing an http request to distant server from a timer handler

MAGNIEN, Thierry 832 September 11, 2012 05:22AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 278
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready