Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ping: eliminates unnecessary ping when the connection is idle. #3381

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

HuSharp
Copy link
Contributor

@HuSharp HuSharp commented Nov 1, 2023

close #3380

rely on https://pkg.go.dev/google.golang.org/grpc/keepalive
server-side will output too many pings

Signed-off-by: husharp <jinhao.hu@pingcap.com>
@seanmonstar
Copy link
Member

I think I understand the bug. The problem is that a ping was scheduled while the connection was busy (not idle), but then streams finished, and the timer fires and wants to send a ping, but then it shouldn't send the ping. Is that right?

Have you tried out this patch in your workflow?

@HuSharp
Copy link
Contributor Author

HuSharp commented Nov 2, 2023

I think I understand the bug. The problem is that a ping was scheduled while the connection was busy (not idle), but then streams finished, and the timer fires and wants to send a ping, but then it shouldn't send the ping. Is that right?

Yes, I think this is the root cause.

Have you tried out this patch in your workflow?

Yes, I have tried this patch, and it did not meet the error too many pings while can be handled by this pr check

@seanmonstar seanmonstar merged commit 429ad8a into hyperium:master Nov 2, 2023
@HuSharp HuSharp deleted the fix_ping branch November 2, 2023 13:15
0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 12, 2024
Signed-off-by: husharp <jinhao.hu@pingcap.com>
0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 16, 2024
Signed-off-by: husharp <jinhao.hu@pingcap.com>
Signed-off-by: Sven Pfennig <s.pfennig@reply.de>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eliminates unnecessary ping when the connection is idle
2 participants