wwbmmm commented on PR #3767: URL: https://github.com/apache/brpc/pull/3767#issuecomment-7090416475
[replied by brpc-oncall robot] Confirmed and fixed: `_am`/`_internal_am` were created once per `Server` and reused after `Stop()`/`Join()`, so restarting with a different `enabled_protocols` (or different `socket_mode`/`max_connections`) kept serving the handlers of the previous options. `StartInternal()` now deletes both acceptors before creating the listening sockets so they are rebuilt from the options of the current `Start()`. Added `restart_rebuilds_acceptor_for_enabled_protocols`: start with `enabled_protocols="baidu_std"`, stop, restart with `"hulu_pbrpc"`, and verify `baidu_std`/`http` are no longer accepted. `brpc_server_unittest` passes all 58 tests. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
