-
Notifications
You must be signed in to change notification settings - Fork 255
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
feat: buffer Framed<.., Codec>
packets
#826
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
719633a
feat: implement `Packet::size` for v4/v5 (#817)
cfdd394
refactor: `read` and `write` methods on `v4::Packet` (#821)
8b4f96d
refactor: `AsyncReadWrite` (#822)
abf416c
feat: MQTT `Codec` decoder
0842f73
feat: MQTT `Codec` encoder
036e1f2
refactor: move write buffer into `Network`
8a220c3
refactor: testing improvements
a5b2717
fix: `readb` should block for 1 packet (#824)
303d8c2
fix: `Network::connect` should flush
7fee5c1
test: fix network expectations for `EventLoop::clean`
75efeaa
refactor: use `Framed` to encode/decode
041c6c8
deprecate `Network::readb`
5dbe5a1
refactor: v5 implementation
c861a95
doc: changelog entry
6c9a8d9
allow configuring `MqttOptions.max_request_batch`
33abd75
feat: buffer packets
8b0aaa1
test: fix by avoiding buffer
f71665b
fix: network buffering based on bytes written
83ed8c4
fix: don't return `Error::InsufficientBytes`
aa08d34
fix: buffer til capacity breach
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This packet is never flushed unless there's a ping or
options.max_request_batch - 1
more packets "sent".There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had the same doubt, was using tests as a crutch, but I see how even the tests aren't complete.
What type of acks should we instantly respond to, I guess only
PingResp
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not so deep in the MQTT standard but think it's just
PingResp
.