grpc/grpc-node

How to capture gRPC keep alives with tcpdump?

josecazarin opened this issue · 2 comments

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!

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

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. :)