Skip to content

Commit 49c0af4

Browse files
rongfengliangxfeep
authored andcommitted
Update ngx_http_clojure_mem.c
add macro fix nginx from 1.25.0 ngx_http_close_request is public
1 parent 832cdf4 commit 49c0af4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/c/ngx_http_clojure_mem.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,7 @@ static ngx_chain_t * ngx_http_clojure_get_and_copy_bufs(size_t page_size, ngx_po
677677
return cl;
678678
}
679679

680+
#if defined(nginx_version) && (nginx_version < 1025000)
680681
/*copy from ngx_http_request.c*/
681682
static void
682683
ngx_http_close_request(ngx_http_request_t *r, ngx_int_t rc)
@@ -709,6 +710,7 @@ ngx_http_close_request(ngx_http_request_t *r, ngx_int_t rc)
709710
ngx_http_free_request(r, rc);
710711
ngx_http_close_connection(c);
711712
}
713+
#endif
712714

713715
static void ngx_http_clojure_hijack_async_timeout_handler(ngx_http_request_t *r) {
714716
ngx_connection_t *c = r->connection;

0 commit comments

Comments
 (0)