Oxidaner opened a new pull request, #3234:
URL: https://github.com/apache/dubbo-go/pull/3234
## What kind of change does this PR introduce?
- [x] Feature
## What is the current behavior?
Related Issue: #1977
## What is the new behavior?
This PR adds graceful shutdown enhancement with the following features:
1. **Exponential backoff retry for active notification**
- When sending notification to consumers fails, the server will retry with
exponential backoff
- Default: 500ms → 1s → 2s, max 3 retries
2. **Active awareness via connection error detection**
- Client detects connection errors (EOF, broken pipe, gRPC closing, http2
closing)
- Marks the invoker as closing to avoid routing requests to unavailable
instances
3. **Closing flag in response**
- Server adds closing flag in response attachment
- Client checks this flag to detect closing state
4. **Protocol-level graceful shutdown callback**
- Added `SetGracefulShutdownCallback` for protocol-specific shutdown logic
- gRPC protocol uses this for `GracefulStop()`
--
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]