Skip to content

HTTP2 optimization#1133

Merged
Alkarex merged 3 commits intoFreshRSS:devfrom
Alkarex:http2_headers
May 1, 2016
Merged

HTTP2 optimization#1133
Alkarex merged 3 commits intoFreshRSS:devfrom
Alkarex:http2_headers

Conversation

@Alkarex
Copy link
Copy Markdown
Member

@Alkarex Alkarex commented Apr 23, 2016

Fast flush HTTP headers, push promise CSS.
Requires PHP 5.3+ due to anonymous function.
Do not load syles, scripts, and notifications for Ajax requests.
#1089

Fast flush HTTP headers, push promise CSS.
Requires PHP 5.3+ due to anonymous function.
Do not load syles, scripts, and notifications for Ajax requests.
FreshRSS#1089
@Alkarex Alkarex added this to the 1.3.2-beta milestone Apr 23, 2016
@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented Apr 23, 2016

With this patch, when using e.g. Apache with mod_http2 http://httpd.apache.org/docs/trunk/mod/mod_http2.html one can see in e.g. Chrome debugger HTTP2_SESSION_RECV_PUSH_PROMISE

@Alkarex Alkarex merged commit 6466fc8 into FreshRSS:dev May 1, 2016
@Alkarex Alkarex deleted the http2_headers branch June 12, 2016 09:21
Alkarex added a commit that referenced this pull request Jun 12, 2016
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Oct 13, 2018
The fast flush optimisation done in
FreshRSS#1133 does not seem to work
anymore (need to check if it is related to a PHP version).
Work-around when PHP flush() is not working
Can be tested by adding a `sleep(5);` after:

https://github.com/FreshRSS/FreshRSS/blob/ee902ee7c4370421802768c3105ba269a4f97b16/app/layout/layout.phtml#L27
Follow-up of the performance checks of
FreshRSS#2040
Alkarex added a commit that referenced this pull request Oct 14, 2018
* Ensure fast flush of HTTP headers and HTML head

The fast flush optimisation done in
#1133 does not seem to work
anymore (need to check if it is related to a PHP version).
Work-around when PHP flush() is not working
Can be tested by adding a `sleep(5);` after:

https://github.com/FreshRSS/FreshRSS/blob/ee902ee7c4370421802768c3105ba269a4f97b16/app/layout/layout.phtml#L27
Follow-up of the performance checks of
#2040

* output_buffering in .user.ini for PHP CGI / FPM

* Reuse .user.ini for Docker PHP config

* Longer flush

Flush a bit later, to be compatible with the default value of 4096 for
PHP output_buffering, and thus avoid the need of tuning the value.
mdemoss pushed a commit to mdemoss/FreshRSS that referenced this pull request Mar 25, 2021
* Ensure fast flush of HTTP headers and HTML head

The fast flush optimisation done in
FreshRSS#1133 does not seem to work
anymore (need to check if it is related to a PHP version).
Work-around when PHP flush() is not working
Can be tested by adding a `sleep(5);` after:

https://github.com/FreshRSS/FreshRSS/blob/ee902ee7c4370421802768c3105ba269a4f97b16/app/layout/layout.phtml#L27
Follow-up of the performance checks of
FreshRSS#2040

* output_buffering in .user.ini for PHP CGI / FPM

* Reuse .user.ini for Docker PHP config

* Longer flush

Flush a bit later, to be compatible with the default value of 4096 for
PHP output_buffering, and thus avoid the need of tuning the value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant