Skip to content

[chttp2] Delay starting ping timeout timer until writes complete#34589

Merged
ctiller merged 5 commits intogrpc:masterfrom
ctiller:pp2
Oct 5, 2023
Merged

[chttp2] Delay starting ping timeout timer until writes complete#34589
ctiller merged 5 commits intogrpc:masterfrom
ctiller:pp2

Conversation

@ctiller
Copy link
Copy Markdown
Member

@ctiller ctiller commented Oct 4, 2023

We probably shouldn't count the time it takes us to write out data as part of the ping timeout

return started_new_ping_without_setting_timeout_;
}

void OnPingTimeout(Duration ping_timeout,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

add docs

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

auto id = callbacks.StartPing(
bitgen, Duration::Hours(24), [] { Crash("should not reach here"); },
&event_engine);
auto id = callbacks.StartPing(bitgen);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we have a test that acks the ping before the timeout is started?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added one

@ctiller ctiller enabled auto-merge (squash) October 5, 2023 02:43
@ctiller ctiller disabled auto-merge October 5, 2023 03:17
@ctiller ctiller merged commit 7fabc61 into grpc:master Oct 5, 2023
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Oct 5, 2023
ctiller added a commit to ctiller/grpc that referenced this pull request Oct 20, 2023
…c#34589)

We probably shouldn't count the time it takes us to write out data as
part of the ping timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bloat/none imported Specifies if the PR has been imported to the internal repository lang/core per-call-memory/neutral per-channel-memory/neutral release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants