Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add experimental managed transport for libgit2 operations #326

Merged
merged 2 commits into from
Mar 21, 2022

Conversation

pjbgf
Copy link
Member

@pjbgf pjbgf commented Mar 18, 2022

libgit2 network operations are blocking and do not provide timeout nor context capabilities, leading to users reporting that image-automation-controller hanging indefinitely.

By using managed transport, golang primitives such as http.Transport and net.Dial can be used to ensure timeouts are enforced.

This will initially be guarded behind a feature switch via environment variable EXPERIMENTAL_GIT_TRANSPORT.

Extends from fluxcd/source-controller#606
Affected issues: #209 #286 #282

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
libgit2 network operations are blocking and do not provide timeout nor context capabilities,
leading to several reports of the controllers hanging indefinitely.

By using managed transport, golang primitives such as http.Transport and net.Dial can be used
to ensure timeouts are enforced.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
@pjbgf pjbgf marked this pull request as ready for review March 21, 2022 15:21
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @pjbgf 🏅

@pjbgf pjbgf merged commit 9b9a4bb into fluxcd:main Mar 21, 2022
@pjbgf pjbgf deleted the fix-freeze branch March 21, 2022 15:54
@hiddeco hiddeco added the enhancement New feature or request label Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants