Ok, thanks!
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,261424,261428#msg-261428
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Given the following nginx config:
---
master_process off;
daemon off;
events {
worker_connections 16384;
}
http {
error_log stderr debug;
access_log on;
log_not_found on;
client_body_buffer_size 64k;
client_body_in_single_buffer on;
upstream nodes {
server 127.0.0.1:8000 max_
Ok, so I managed this to work, needed to add ngx_http_send_header and
ngx_http_finalize_request:
static void simple_timeout_handler(ngx_event_t* timeout_event)
{
ngx_int_t result;
ngx_http_request_t* request;
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, timeout_event->log, 0,
"SIMPLE TIMEOUT TIME
So I'm continuing to work on my simple timeout module:
http://forum.nginx.org/read.php?2,259019
Now, when timer elapses, I want to cancel ongoing http request, here's my
timer handler:
static void simple_timeout_handler(ngx_event_t* timeout_event)
{
ngx_http_request_t* request = (ngx_http_reque
I want to write my custom nginx module for measuring request processing time
for every HTTP request received. I need to start counting request processing
time as early as nginx receives first byte of a request and finish, when it
sends the last byte in a response. What would the best place be in n
Thanks, it worked as I added ngx_del_timer call in ngx_pool_cleanup_t
handler of a request
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,259019,259034#msg-259034
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinf
I'm trying to build a simple timeout module using nginx timers. At the
beginning of a request I'm firing up a timer and after time interval elapses
I want to check if request has already completed, and if not, finalize it,
for example it with NGX_HTTP_REQUEST_TIME_OUT. I have created a filter
modul