Skip to content

How can I see gRPC server streaming sessions? #231

Answered by AnWeber
ncsibra asked this question in Q&A
Discussion options

You must be logged in to vote

I have now set it up in a dev container. Thanks for the example. And yes calling the cancel method seems to solve the problem. Without it the server rattles through all 100 entries. Now when I use my dev branch it stops after cancel.

2023/10/23 19:12:22 22. feature sent
2023/10/23 19:12:23 23. feature sent
2023/10/23 19:12:23 context canceled during sleep
2023/10/23 19:12:23 ListFeatures finished

Apparently it is not enough for grpc to terminate the stream using destroy/ end, but you have to explicitly use the API. But cool found I hope. I will release the state and then you can still test it please. And big thanks for your example. It was super helpful.

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@AnWeber
Comment options

@ncsibra
Comment options

@ncsibra
Comment options

@AnWeber
Comment options

Answer selected by ncsibra
@ncsibra
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants