sruehl opened a new pull request, #2688:
URL: https://github.com/apache/plc4x/pull/2688

   context.DeadlineExceeded is a metadata-free singleton: a bare "context 
deadline exceeded" never says which of the stacked deadlines fired or what its 
value was, making field timeouts undiagnosable.
   
   utils.WithNamedTimeout wraps context.WithTimeoutCause with a cause that 
reads "<name> <duration> exceeded" AND wraps the sentinel, so context.Cause 
carries the diagnosis while errors.Is(err, context.DeadlineExceeded) keeps 
working for every consumer (net/http propagates the cause in place of the 
sentinel since Go 1.23).
   
   All 16 bare context.WithTimeout call sites are converted with descriptive 
names (transaction completion timeout, segment ack wait timeout, MMI read 
timeout, connection close timeout, ...).


-- 
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]

Reply via email to