Repository navigation
Fix NETTY-452, add an option for whether to count length field into packet length or not - #45
Merged
Merged
Conversation
…e length field into frame length.
Member
|
I will review later and if everything is ok pull itin. So stay tuned.... |
normanmaurer
added a commit
that referenced
this pull request
Nov 9, 2011
Fix NETTY-452, add an option for whether to count length field into packet length or not
Member
|
Also merged to 3.2 |
Member
|
sunng87, You can easily extract the Diameter protocol message frame with the following parameters:
Therefore, there's no need to patch |
Contributor
Author
|
Trustin, you are right, it works. Thank you. |
Member
|
No problem. :-) |
normanmaurer
added a commit
that referenced
this pull request
Nov 11, 2011
Member
|
Reverted in master and 3.2 |
chrisvest
pushed a commit
to chrisvest/netty
that referenced
this pull request
Apr 2, 2025
Motivation: Or implementation that we used before to handle writable streams was very wasteful as we basically had to iterate over all the streams all the time even tho most of the time streams should not have any pending writes which need to be handled here. Modifications: Keep track of streams that have pending writes by ourselves and only process these when QuicheQuicChannel.writable() is called. Result: Less overhead, fixes netty/netty-incubator-codec-quic#42.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
For some protocols (such as Diameter Protocol), the value of length field means the whole packet size. LengthFieldOffset and LengthFieldLength are counted into that. It conflicts with current LengthFieldBasedFrameDecoder impl. And also I find it difficult to subclass it to add this modification (fields are private, no accessors, decode is rather big). So I think it's better to provide the new option to LengthFieldBasedFrameDecoder.