Skip to content

Conversation

lchsk
Copy link
Contributor

@lchsk lchsk commented Sep 22, 2025

Currently flush() is not getting called so compressed output is not returned to the client the encoder until input is fully read(). In my use case, flushing more often is necessary as otherwise it appears to the client the data gets 'buffered'.

There's been a previous PR here and some discussion #155 but appears to be abandonded so if there's interest in this fix, this PR tries this again.
The tests are passing with this change.

Currently flush() is not getting called so compressed output is not
returned to the client the encoder until input is fully read(). In my use case,
flushing more often is necessary as otherwise it appears to the client
the data gets 'buffered'.

There's been a previous PR here and some discussion
Nullus157#155
but appears to be abandonded so if there's interest in this fix, this PR
tries this again.
The tests are passing with this change.
Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

Thank you!

can you also update the futures bufread encoder as well?

It's equivalent to the tokio implementation.
@lchsk
Copy link
Contributor Author

lchsk commented Sep 24, 2025

Thank you!

can you also update the futures bufread encoder as well?

Sure, updated it just now.

Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

Thank you!

@NobodyXu NobodyXu added this pull request to the merge queue Sep 25, 2025
Merged via the queue into Nullus157:main with commit 4ebce39 Sep 25, 2025
20 checks passed
Copy link

codecov bot commented Sep 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (74f5eb1) to head (7b4a1de).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #383   +/-   ##
===========================
===========================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@NobodyXu
Copy link
Collaborator

Released in 0.4.31

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