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

DoH: increase temp. receive buffer size to 16K (#1) #67

Merged
merged 1 commit into from
Jun 3, 2021

Conversation

arbv
Copy link
Contributor

@arbv arbv commented May 31, 2021

This MR increases the size of a temporary receive buffer to hold
16K - exactly one max sized TLS record. This small change ensures
flamethrower compatibility with servers employing write request
buffering (consolidation) and deployments where TLS encryption is
offloaded to third-party software (e.g. haproxy). In the latter case,
the software could employ its own write buffering technics.

I managed to hit both of these use cases. In such a case, one would see
a lot of "malformed data" messages from the flamethrower.

This commit increases the size of a temporary receive buffer to hold
16K - exactly one max sized TLS record. This small change ensures
flamethrower compatibility with servers employing write request
buffering (consolidation) and deployments where TLS encryption is
offloaded to third-party software (e.g. haproxy). In the latter case,
the software could employ its own write buffering technics.

I managed to hit both of these use cases. In such a case, one would see
a lot of "malformed data" messages from the flamethrower.
@weyrick weyrick merged commit 25b20d8 into DNS-OARC:master Jun 3, 2021
@weyrick
Copy link
Contributor

weyrick commented Jun 3, 2021

Thanks!

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

2 participants