Skip to content

Conversation

@raphael
Copy link
Member

@raphael raphael commented Dec 17, 2025

Re-add the pingPonger ConnConfigureFunc for the Subscribe endpoint that was removed at some point.

This configurer:

  • Periodically pings clients (every 3 seconds)
  • Cancels the request context if they fail to respond with a pong within the deadline
  • Improves connection health detection for server-side streaming endpoints

Also fixes errorHandler to log write errors instead of discarding them with _, _ = ....

Reference:

chatterConfigurer := chattersvcsvr.NewConnConfigurer(nil)
chatterConfigurer.SubscribeFn = pingPonger(logger)

Re-add the pingPonger ConnConfigureFunc for the Subscribe endpoint that was
removed at some point. This configurer periodically pings clients and cancels
the request context if they fail to respond with a pong, improving connection
health detection for server-side streaming endpoints.

Also fix errorHandler to log write errors instead of discarding them.
@raphael raphael merged commit 6515582 into main Dec 17, 2025
4 checks passed
@raphael raphael deleted the reintroduce-pingpong-configurer branch December 17, 2025 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants