echo-nginx-module and 1.11.12

Lucas Rolff lucas at slcoding.com
Sun Mar 26 19:45:22 UTC 2017


When the pull request here gets merged into master, then it should work 
on 1.11.11 (and 1.11.12):

https://github.com/openresty/echo-nginx-module/pull/65

A. Schulze wrote:
> Am 01.02.2016 um 23:53 schrieb Yichun Zhang (agentzh):
>> Hello!
>>
>> On Fri, Jan 29, 2016 at 8:40 PM, Kurt Cancemi wrote:
>>> I was doing some debugging and though I haven't found a fix. The problem is
>>> in the ngx_http_echo_client_request_headers_variable() function c->buffer is
>>> NULL when http v2 is used for some reason (internal to nginx).
>>>
>> This is expected since the HTTP/2 mode of NGINX reads the request
>> header into a different place. We should branch the code accordingly.
>>
>> Regards,
>> -agentzh
>
> Hello,
>
> unfortunately the module fail to compile on 1.11.12
> while compiling was successfully up to 1.11.10
>
> cc -c -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/include -I objs -I src/http -I src/http/modules -I src/http/v2 -I src/stream \
>          -o objs/addon/src/ngx_http_echo_request_info.o \
>          ./echo-nginx-module-0.60//src/ngx_http_echo_request_info.c
> ./echo-nginx-module-0.60//src/ngx_http_echo_request_info.c: In function 'ngx_http_echo_client_request_headers_variable':
> ./echo-nginx-module-0.60//src/ngx_http_echo_request_info.c:219:15: error: incompatible types when assigning to type 'ngx_buf_t * {aka struct ngx_buf_s *}' from type 'ngx_chain_t {aka struct ngx_chain_s}'
>               b = hc->busy[i];
>                 ^
> ./echo-nginx-module-0.60//src/ngx_http_echo_request_info.c:284:15: error: incompatible types when assigning to type 'ngx_buf_t * {aka struct ngx_buf_s *}' from type 'ngx_chain_t {aka struct ngx_chain_s}'
>               b = hc->busy[i];
>                 ^
> objs/Makefile:1523: recipe for target 'objs/addon/src/ngx_http_echo_request_info.o' failed
>
> I guess, something changed from 1.11.10 to 1.11.12 ...
>
> Andreas
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170326/ec0541ba/attachment.html>


More information about the nginx mailing list