Re: read request body with http2

2019-10-17 Thread Ansuel
I don't know if this is a bug or not but... yes you were right... All the work should be done in the ngx_http_read_client_request_body handler, as it does duplicate the r connection to another address What confused me is the fact that this is only done in http2 connections... I really don't know

Re: read request body with http2

2019-10-14 Thread Ansuel
this is what i have in the module handler function rc = ngx_http_read_client_request_body(r, ngx_http_test_read_req); if (rc != NGX_OK && rc != NGX_AGAIN) { return rc; } And this is what i have in ngx_http_test_read_req char *buffer = n

read request body with http2

2019-10-13 Thread Ansuel
Hello, i'm developing a custom module that needs to read the request body to get some data from it. To read the request body i'm using ngx_http_read_client_request_body and in the callback i use for (in = r->request_body->bufs; in; in = in->next) { len = ngx_buf_size(