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

Parse headers and redirect rules on startup #838

Merged
merged 5 commits into from
Apr 16, 2020

Conversation

RaeesBhatti
Copy link
Contributor

@RaeesBhatti RaeesBhatti commented Apr 15, 2020

- Summary
Rules proxy needs some time before it can detect changes t

Sometimes chokidar can take some time before it triggers the add, change event (which is when we parse the config files) and that results in server running without the rules applied. This is especially prominent in Windows and causes the tests to fail.
Now, we're parsing the those files on startup and then adding onChange event callbacks.

- Test plan

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@RaeesBhatti RaeesBhatti marked this pull request as ready for review April 15, 2020 21:50
@RaeesBhatti RaeesBhatti merged commit 20383c0 into master Apr 16, 2020
@RaeesBhatti RaeesBhatti deleted the raees/parse-on-startup branch April 16, 2020 15:49
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.

3 participants