Skip to content

Don't set the writerIndex to incorrect value when scattering reads ar…#12076

Merged
chrisvest merged 1 commit into
4.1from
scattering_writer_index
Feb 4, 2022
Merged

Don't set the writerIndex to incorrect value when scattering reads ar…#12076
chrisvest merged 1 commit into
4.1from
scattering_writer_index

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

…e used for datagrams

Motivation:

Due a bug we did set the writerIndex(...) of datagrams to an incorrect value sometimes when scattering reads are used.

Modifications:

  • Remove incorrect call to writerIndex(...)
  • Add comment

Result:

Correct writerIndex is used

…e used for datagrams

Motivation:

Due a bug we did set the writerIndex(...) of datagrams to an incorrect value sometimes when scattering reads are used.

Modifications:

- Remove incorrect call to writerIndex(...)
- Add comment

Result:

Correct writerIndex is used
@normanmaurer
Copy link
Copy Markdown
Member Author

@chrisvest great catch!

@normanmaurer normanmaurer added this to the 4.1.74.Final milestone Feb 4, 2022
Copy link
Copy Markdown
Contributor

@Kvicii Kvicii left a comment

Choose a reason for hiding this comment

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

LGTM

@chrisvest chrisvest merged commit fb4a320 into 4.1 Feb 4, 2022
@chrisvest chrisvest deleted the scattering_writer_index branch February 4, 2022 16:09
chrisvest pushed a commit that referenced this pull request Feb 4, 2022
…e used for datagrams (#12076)

Motivation:

Due a bug we did set the writerIndex(...) of datagrams to an incorrect value sometimes when scattering reads are used.

Modifications:

- Remove incorrect call to writerIndex(...)
- Add comment

Result:

Correct writerIndex is used
raidyue pushed a commit to raidyue/netty that referenced this pull request Jul 8, 2022
…e used for datagrams (netty#12076)

Motivation:

Due a bug we did set the writerIndex(...) of datagrams to an incorrect value sometimes when scattering reads are used.

Modifications:

- Remove incorrect call to writerIndex(...)
- Add comment

Result:

Correct writerIndex is used
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.

3 participants