Closed prashantv closed 1 year ago
Patch coverage: 76.71
% and project coverage change: +0.02
:tada:
Comparison is base (
0c11cc2
) 88.78% compared to head (05971e3
) 88.81%.:exclamation: Current head 05971e3 differs from pull request most recent head 99a96e0. Consider uploading reports for the commit 99a96e0 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Replaces https://github.com/uber/tchannel-go/pull/817
Add a new option,
SendCancelOnContextCanceled
to send cancel frames when a context is detected to be canceled on the request sender side.Cancellations often happen while waiting to read a response, so we can rely on the reader goroutine waiting on the message exchange to notice the cancellation and send the cancel message to the remote side vs adding a separate goroutine.
Older servers and relays without this change will log
Received unexpected frame
but otherwise be unaffected by the unknown frame. However, there's no point enabling cancellations if the remote side doesn't support them first.