wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.21k stars 295 forks source link

Compilation fails for NGINX 1.24.0 #306

Closed dvershinin closed 1 year ago

dvershinin commented 1 year ago

Errors like this:

In file included from src/core/ngx_core.h:65:0,
                 from nginx-push-stream-module-0.5.5/include/ngx_http_push_stream_module.h:30,
                 from nginx-push-stream-module-0.5.5/src/ngx_http_push_stream_module.c:26:
src/core/ngx_array.h:27:7: note: expected 'struct ngx_array_t *' but argument is of type 'struct ngx_table_elt_t **'
 void *ngx_array_push(ngx_array_t *a);
       ^
In file included from nginx-push-stream-module-0.5.5/src/ngx_http_push_stream_module.c:29:0:
nginx-push-stream-module-0.5.5/src/ngx_http_push_stream_module_utils.c:2196:53: error: request for member 'nelts' in something not a structure or union
         for (i = 1; i < r->headers_out.cache_control.nelts; i++) {
                                                     ^
wandenberg commented 1 year ago

@dvershinin This issue was solved on the master branch in 06/2022. Only a new tag was not released. Please, use the master branch code instead tag 0.5.5.