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

How to capture gRPC keep alives with tcpdump? #2751

Open
josecazarin opened this issue May 17, 2024 · 2 comments
Open

How to capture gRPC keep alives with tcpdump? #2751

josecazarin opened this issue May 17, 2024 · 2 comments

Comments

@josecazarin
Copy link

Hello!

I've tried all the possible combinations of filters in tcpdump for later inspection to try to capture gRPC keep alive probes, but I can never see them in Wireshark. So I don't know if the changes I'm making to my Go code are actually taking effect. Does anyone have an ideia on how to configure tcpdump to capture keep alive probes?

I'm trying to capture those probes in different services running on the same host, so I'm basically using gRPC as a local IPC mechanism.

Thank you so much!

@murgatroid99
Copy link
Member

gRPC keepalives are implemented as HTTP2 pings. You should see those in the tcpdump output if you interpret the traffic as HTTP2.

@davidfiala
Copy link
Contributor

If for any reason you think you are missing keepalives that should be there, please let me know how you have your server/client setup, library versions, etc in #2734 --- if you think your keepalives are working and you just want to inspect traffic, then please ignore my noise. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants