mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 22:10:17 +00:00
Add CloseHandler to support graceful connection termination.
- Extend `test.proto` with `CloseCommand` and `CloseResponse` messages. - Introduce `CloseHandler` to process "close" actions and respond with connection termination notice. - Update `DelegateActionManager` to register `CloseHandler`. - Refactor `IPCManager` to handle "close" response headers and terminate client connections gracefully.
This commit is contained in:
parent
6576b54057
commit
269780d8cf
@@ -21,4 +21,10 @@ message HeartbeatCommand {
|
||||
message HeartbeatResponse {
|
||||
int64 client_timestamp = 1;
|
||||
int64 server_timestamp = 2;
|
||||
}
|
||||
message CloseCommand {
|
||||
// Vazio - apenas sinaliza fechamento
|
||||
}
|
||||
message CloseResponse {
|
||||
string message = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user