-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Set context for running CreateArchive to that of the request #12555
Set context for running CreateArchive to that of the request #12555
Conversation
Set the context for CreateArchive to that of the request to ensure that archives are only built for as long as a request is requesting them Fix go-gitea#11551 Signed-off-by: Andrew Thornton <art27@cantab.net>
Codecov Report
@@ Coverage Diff @@
## master #12555 +/- ##
==========================================
+ Coverage 43.43% 43.45% +0.01%
==========================================
Files 645 645
Lines 71306 71306
==========================================
+ Hits 30972 30984 +12
+ Misses 35324 35313 -11
+ Partials 5010 5009 -1
Continue to review full report at Codecov.
|
So the timeout is the one http client default value? |
The timeout becomes the request context, that is if the user is still requesting the archive it still gets created. It just solves the initial issue. We need something more like the migration creation task based approach in general, @kevans91 was doing some work in that direction but the PR # escapes me right now. |
PR #11296 |
Set the context for CreateArchive to that of the request to ensure that archives
are only built for as long as a request is requesting them
Fix #11551
Signed-off-by: Andrew Thornton art27@cantab.net