Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NetSocket implementation can redeliver the same buffer when paused fixes
- Loading branch information
1adf3f0
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.
no way to test this?
1adf3f0
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.
no, I've been able to reproduce it with this though (that's how I found it) : https://github.com/vietj/back-pressure-test (in FrontClient.java) but was not able to come up with a test.
when the NetSocket is paused Netty autoread is set to false, it can only be reproduced when autoread is to set false and a buffer is being delivered at the same time (or almost), which happens in the back-pressure-test
1adf3f0
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 sent a note on vertx-dev, if you can create a reproducer that would be great.
1adf3f0
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.
Let me try