Closed StephanDollberg closed 7 years ago
Will fix the docs.
In regards to the check, yeah I am undecided on that.
Problem with checking for the length first is that if you were to push a resource which you already pushed, then it returns an error even though there is no real problem. (shrug)
On May 26, 2017 16:07, "Alessandro Ghedini" notifications@github.com wrote:
@ghedo requested changes on this pull request.
In README.rst https://github.com/ghedo/http2-push-nginx-module/pull/3#discussion_r118722756 :
@@ -32,6 +32,15 @@ http2_push_path
Specifies a resource that should be pushed.
+http2_max_pushed_streams
+~~~
+
+syntax: http2_max_pushed_streams
In src/ngx_http_v2_push_module.c https://github.com/ghedo/http2-push-nginx-module/pull/3#discussion_r118723069 :
@@ -731,6 +746,10 @@ ngx_http_v2_push(ngx_http_request_t r, u_char u_str, size_t u_len) return NGX_OK; }
Probably best to put this before the other check since it's less expensive. Not too important though.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ghedo/http2-push-nginx-module/pull/3#pullrequestreview-40544657, or mute the thread https://github.com/notifications/unsubscribe-auth/ACxSk5mRlH4xItEs-Rk7f_YnQgUbYHlfks5r9urEgaJpZM4NnsYr .
Merged in 031acc46fd84907002fe2bf9bc7879e3c9d85fea, thanks!
Don't push more than
http2_max_pushed_streams
resources. Setting default to arbitrary value of 100.