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

Maximum fragment size #426

Merged
merged 4 commits into from
Apr 18, 2020
Merged

Maximum fragment size #426

merged 4 commits into from
Apr 18, 2020

Conversation

ocheron
Copy link
Contributor

@ocheron ocheron commented Apr 17, 2020

Replaces the constant 16384 used at multiple places with a runtime variable held by the context.
A Nothing value can be used to disable fragmentation (assuming an alternative record layer is able to deal with this). The variable could be changed to IORef later, to implement extension "max_fragment_length".

The PR also includes some code clean-up, mostly related to CPP.

The library requires base >= 4.9 so the parts related to earlier
versions can be removed.
Imported instances are always exported, there is no need to
explicitely export them.
Replaces the maximum fragment size 16384 with a runtime variable
defined when the context is initialized.
@kazu-yamamoto kazu-yamamoto self-requested a review April 18, 2020 00:47
Copy link
Collaborator

@kazu-yamamoto kazu-yamamoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@kazu-yamamoto kazu-yamamoto merged commit c846b58 into haskell-tls:master Apr 18, 2020
@ocheron ocheron deleted the fragment-size branch April 26, 2020 11:53
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