Skip to content
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

Improve Slic slow write test #4110

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

bernardnormier
Copy link
Member

This is a small update to Slic's Connection_with_idle_timeout_and_slow_write_is_not_aborted test, in an effort to figure out #4108.

Note that the 500ms duration chosen by this test happens to match Slic's read timer:

private void ResetReadTimer() => _readTimer?.Change(_idleTimeout * 0.5, Timeout.InfiniteTimeSpan);

So, with the test as written, the test sends a (one-way) byte every 500ms and Slic sends a Ping frame every 500ms (to get back a Pong frame). Assuming a little latency, this 1-byte write should be written first in subsequent iterations since Slic resets its read timer when it reads the Pong frame. It's not clear if we chose 500ms to match the Slic read timer or if it's accidental.

@bernardnormier bernardnormier merged commit 85665bb into icerpc:main Nov 15, 2024
8 checks passed
pepone pushed a commit to pepone/icerpc-csharp that referenced this pull request Nov 15, 2024
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