openresty / lua-resty-redis

Lua redis client driver for the ngx_lua based on the cosocket API
1.91k stars 448 forks source link

Nginx 1.24 #264

Open ericzielonka opened 1 year ago

ericzielonka commented 1 year ago

Hey.

i get this error, if i compile this module with nginx 1.24:

/opt/ngx_http_redis-0.3.9/ngx_http_redis_module.c: In function ‘ngx_http_redis_process_header’: /opt/ngx_http_redis-0.3.9/ngx_http_redis_module.c:585:26: error: ‘ngx_http_upstream_headers_in_t’ {aka ‘struct ’} has no member named ‘content_encoding’ 585 | u->headers_in.content_encoding = h; | ^ make[1]: [objs/Makefile:1870: objs/addon/ngx_http_redis-0.3.9/ngx_http_redis_module.o] Error 1 make[1]: Leaving directory '/opt/nginx-1.24.0' make: [Makefile:16: modules] Error 2

Nginx 1.22 works fine.

kkmuffme commented 1 year ago

nginx 1.24 isn't supported yet, see https://github.com/openresty/openresty/issues/905

sharewax commented 1 year ago

@ericzielonka you can try fork for it here https://github.com/centminmod/ngx_http_redis/

nikhilrakuten commented 2 months ago

@zhuizhuhaomeng is there any update on this ? I am not able to use set_keepalive() with nginx 1.24 version

zhuizhuhaomeng commented 2 months ago

Please wait for openresty-1.27.1.