-
Notifications
You must be signed in to change notification settings - Fork 55
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
Test that reconnect doesn't drop partially sent messages #360
Conversation
Signed-off-by: Caleb Lloyd <[email protected]>
Signed-off-by: Caleb Lloyd <[email protected]>
Interesting - got a dropped message in this test run |
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.
LGTM
I'm also getting it sometimes locally:
Also copied it to a 2.0.x codebase, fails with Edit: the new branch is a bit better:
|
Do you think we should put a range in then, to prevent it from being a flapper? With an Issue to follow-up on it? |
I think that's reasonable. Feel free to merge when you're happy with it. |
Signed-off-by: Caleb Lloyd <[email protected]>
Great, I've adapted the test to check for
If that is indeed where the loss is occurring, I think it is acceptable. Because this loss would occur anyways if we didn't do any buffering at all. |
Add a test that checks that client-side reconnects don't drop partially sent messages out of the send buffer