GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(k8s): propagate caller context in dialer DialContext by Elvand-Lie · Pull Request #3834 · knative/func Conversation
Contributor
Replaces #3803 with the requested fixes from #3772.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe exec goroutine in DialContext was using context.TODO(), which should be replaced with a proper context. However, per net.Dialer.DialContext semantics, the dial context must not be used directly: once connected, context expiry must not affect the connection. Use a background-derived context for the exec stream, cancelled via defer when the goroutine exits (which happens when the connection pipes are closed). Add an integration test verifying the connection survives after the dial context expires.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #3834 +/- ## ========================================== + Coverage 53.42% 53.44% +0.02% ========================================== Files 200 200 Lines 23426 23450 +24 ========================================== + Hits 12515 12534 +19 - Misses 9655 9662 +7 + Partials 1256 1254 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
644b67b to
be8713b
Compare
There was an error while loading. Please reload this page.
|
I see that now. Updated to use a raw et.Conn instead and added the cancel calls. Let me know if this solution works @matejvasek. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/approve |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Elvand-Lie, matejvasek The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.