I guess we still need the request buf, so made these changes which seemed better. but the behavior is still same. Went though the code for upstream create request and looks like the body is always read from buffer. ngx_buf_t *payload_buf = NULL; payload_buf = ngx_create_temp_buf(r->pool, ctx->temp_buf_size); if (payload_buf == NULL) { ngx_log_stderr(0, "failby salmaanp - Nginx Mailing List - English
I'm building an nginx module and trying to create a post subrequest from the main request. The response from the main request buffers is saved to a nginx temp file and a post subrequest is created. The body of the post subrequest is from the nginx temp file instead of buffers. ``` ngx_http_request_t *sr; ngx_http_post_subrequest_t *ps; ps = ngx_palloc(r->pool, sizeof(ngx_htby salmaanp - Nginx Mailing List - English
# HG changeset patch # User Salmaan Pehlari <salmaanpehlari@gmail.com> # Date 1593931168 25200 # Sat Jul 04 23:39:28 2020 -0700 # Node ID 3b843e88de3761b2b71bac3c5fe453e09ae7990e # Parent c5840ca2063d26e432264ad0b0fe00c0bd94252c SSL: Verify IP SAN's in upstream certificates. Verify IP's in upstream certificates if no host names match. diff -r c5840ca2063d -r 3b843e88de37 src/event/ngby salmaanp - Nginx Development
# HG changeset patch # User Salmaan Pehlari <salmaanpehlari@gmail.com> # Date 1593931168 25200 # Sat Jul 04 23:39:28 2020 -0700 # Node ID 3b843e88de3761b2b71bac3c5fe453e09ae7990e # Parent c5840ca2063d26e432264ad0b0fe00c0bd94252c SSL: Verify IP SAN's in upstream certificates. Verify IP's in upstream certificates if no host names match. diff -r c5840ca2063d -r 3b843e88de37 src/event/ngby salmaanp - Nginx Development
Hi, I'm trying to make parallel network subrequests in my module. They work perfectly fine when run sequentially as follows. ``` ACCESS PHASE return create_subrequest1; ---> (NGX_AGAIN) return create_subrequest2; ---> (NGX_AGAIN) ``` To make it parallel, I removed the returns and called NGX_AGAIN twice later on in the access phase when the subrequests should be done. By doingby salmaanp - Nginx Mailing List - English