I checked the error.log and found the ngx_http_v8_handler_request called in the post access phase. Then how should the coding structure be?by CarlWang - Nginx Mailing List - English
Thanks for your help. I just followed Emiller's Guide To Nginx Module Development and build my Non-proxying Handler. I'm not quite sure which phase is the handler function running in. Maybe NGX_HTTP_ACCESS_PHASE or NGX_HTTP_CONTENT_PHASE.by CarlWang - Nginx Mailing List - English
Here are my code: static void v8_embed_handler ( ngx_http_request_t * r ) { ...// generating out chain. rc = ngx_http_output_filter ( r , out ); while( rc == NGX_AGAIN ) { if( out->next == NULL ) break; rc = ngx_http_output_filter ( r , out->next ); out = out->next; } ngx_http_finalize_request ( r , rc ); } static ngx_int_t ngx_http_v8_handler_request(ngx_http_by CarlWang - Nginx Mailing List - English
I have a similar problem here. My handler module in Nginx is supposed to intercept POST requests, analyse it and send response( the response body maybe larger than 64k). Of course, I used ngx_http_read_client_request_body to register my request_body_handler. The request_body_handler does some computing and calls ngx_http_output_filter(r,out) to send the response. Here is the problem. If this rby CarlWang - Nginx Mailing List - English