-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add setting to flush fabio buffer regardless headers #531
Conversation
a77c035
to
f10db85
Compare
fc15b37
to
96f2aa7
Compare
LGTM. Could you also please add an entry to the website docs? https://github.com/fabiolb/fabio/tree/master/docs/content/ref Thx |
@magiconair hi, thank you for review! it is already in this PR if i understand you properly - https://github.com/fabiolb/fabio/pull/531/files#diff-b10f488af9bd0792cae6f6d2280472dc |
@magiconair hi, do you have any updates? Would be great to see it merged. |
@magiconair ping again :) |
@magiconair any chance to see it merged? |
@samm-git Thank you for your patience. I see the docs. LGTM! Thank you! |
@samm-git thx for your patience |
Description
This PR adds ability to configure flush buffer interval for non-SSE request.
In my configuration Fabio is serving services behind CDN. CDN expects any response to start (TTFB) within preconfigured timeout and if it is not - responds with 504. I can workaround this with setting SSE header, but in this case flush time is just 1s and also it requires to control every client which doing requests, and it is not always possible. This PR adds another setting, which can set this timeout globally, for all non-SSE requests. I am planning to set it to value which is high enough to not have significant performance impact but lower then cdn timeout.