Skip to content

drpcserver: add Stop(), listener and conn tracking#40

Draft
cthumuluru-crdb wants to merge 2 commits intocockroachdb:mainfrom
cthumuluru-crdb:issue-165377
Draft

drpcserver: add Stop(), listener and conn tracking#40
cthumuluru-crdb wants to merge 2 commits intocockroachdb:mainfrom
cthumuluru-crdb:issue-165377

Conversation

@cthumuluru-crdb
Copy link
Copy Markdown

Add gRPC-like lifecycle management to the DRPC server:

  • Track listeners passed to Serve and close them in Stop()
  • Track server-side connections and close them in Stop()
  • Add Stop() method that closes all listeners and connections

This mirrors grpc.Server behavior where Stop() forcefully terminates
all active connections and closes all listeners.

Co-Authored-By: roachdev-claude roachdev-claude-bot@cockroachlabs.com

Add gRPC-like lifecycle management to the DRPC server:
- Track listeners passed to Serve and close them in Stop()
- Track server-side connections and close them in Stop()
- Add Stop() method that closes all listeners and connections

This mirrors grpc.Server behavior where Stop() forcefully terminates
all active connections and closes all listeners.

Co-Authored-By: roachdev-claude roachdev-claude-bot@cockroachlabs.com
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.

1 participant