Skip to content
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

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

samm-git
Copy link
Contributor

@samm-git samm-git commented Aug 10, 2018

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.

@CLAassistant
Copy link

CLAassistant commented Aug 10, 2018

CLA assistant check
All committers have signed the CLA.

@magiconair
Copy link
Contributor

LGTM.

Could you also please add an entry to the website docs? https://github.com/fabiolb/fabio/tree/master/docs/content/ref

Thx

@samm-git
Copy link
Contributor Author

@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

@samm-git
Copy link
Contributor Author

samm-git commented Sep 3, 2018

@magiconair hi, do you have any updates? Would be great to see it merged.

@samm-git
Copy link
Contributor Author

@magiconair ping again :)

@samm-git
Copy link
Contributor Author

@magiconair any chance to see it merged?

@aaronhurt
Copy link
Member

@samm-git Thank you for your patience. I see the docs. LGTM!

Thank you!

@aaronhurt aaronhurt merged commit 2ac1992 into fabiolb:master Sep 19, 2018
@magiconair
Copy link
Contributor

@samm-git thx for your patience

magiconair added a commit that referenced this pull request Sep 19, 2018
@magiconair magiconair added this to the 1.5.10 milestone Sep 19, 2018
@samm-git samm-git deleted the add-global-flush branch September 19, 2018 22:07
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.

None yet

4 participants