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

Fix line too long on backend parsing #683

Merged
merged 1 commit into from
Nov 2, 2020
Merged

Conversation

jcmoraisjr
Copy link
Owner

HAProxy limits the number of arguments and chars per configuration line, respectively in 64 and 2048. These limits can break the backend parsing in the following conditions: a big number of distinct paths or hostnames sharing the same backend, most of them has at least one per-path customized configuration, at least one of them has a distinct configuration.

This commit splits a long chain of matching hostname+path references into at most 30 items, and new lines of the same keyword are added until all paths have been matched.

Need to be merged up to v0.10.

HAProxy limits the number of arguments and chars per configuration line,
respectively in 64 and 2048. These limits can break the backend parsing
in the following conditions: a big number of distinct paths or hostnames
sharing the same backend, most of them has at least one per-path
customized configuration, at least one of them has a distinct
configuration.

This commit splits a long chain of matching hostname+path references
into at most 30 items, and new lines of the same keyword are added until
all paths have been matched.

Need to be merged up to v0.10.
@jcmoraisjr jcmoraisjr merged commit a967a0a into master Nov 2, 2020
@jcmoraisjr jcmoraisjr deleted the jm-line-too-long branch November 2, 2020 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant