You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HuSharp
changed the title
Setting PermitWithoutStream to false on the client side eliminates the need to send pings when the connection is idle.
eliminates unnecessary ping when the connection is idle
Nov 1, 2023
Version
master
Platform
Linux 5.4.0-154-generic #171-Ubuntu SMP Fri Jun 16 16:29:04 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Description
Setting PermitWithoutStream to false on the client side eliminates the need to send pings when the connection is idle.
otherwise output
too many ping
can check code here https://github.com/grpc/grpc-go/blob/70f1a4045da95b93f73b6dbdd7049f3f053c0680/internal/transport/http2_server.go#L891-L894
grpc-client will check https://github.com/grpc/grpc-go/blob/70f1a4045da95b93f73b6dbdd7049f3f053c0680/internal/transport/http2_client.go#L1685-L1693
I tried this code:
maybe need to check idle here
I expected to see this happen: [explanation]
do not output
too many ping
Instead, this happened: [explanation]
unnecessary ping from client side
The text was updated successfully, but these errors were encountered: