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 compressing large chunks #11

Merged
merged 2 commits into from
May 3, 2019
Merged

Fix compressing large chunks #11

merged 2 commits into from
May 3, 2019

Conversation

Nemo157
Copy link
Member

@Nemo157 Nemo157 commented May 3, 2019

Description

Flushing previously didn't guarantee that it would flush out the entire
data.

As part of this the flate and gzip implementations were refactored to a
state machine as I believe this makes them much more understandable,
especially the gzip implementation.

Motivation and Context

This should fix the issue mentioned at http-rs/tide#194 (comment)

How Has This Been Tested?

New tests added.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@Nemo157
Copy link
Member Author

Nemo157 commented May 3, 2019

r? @fairingrey

@fairingrey
Copy link
Contributor

Looks good. I think it makes a lot more sense now reading through the code. I will have to refactor #10 but it shouldn't take too long, I imagine.

Nemo157 added 2 commits May 3, 2019 17:40
Flushing previously didn't guarantee that it would flush out the entire
data.

As part of this the flate and gzip implementations were refactored to a
state machine as I believe this makes them much more understandable,
especially the gzip implementation.
@Nemo157 Nemo157 merged commit 0ff6229 into Nullus157:master May 3, 2019
@Nemo157 Nemo157 deleted the fix-large-chunks branch May 3, 2019 18:03
@Nemo157 Nemo157 mentioned this pull request May 5, 2019
16 tasks
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.

2 participants