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

Adjustable timeouts for NuGet #3383

Merged
merged 3 commits into from
Oct 24, 2018
Merged

Adjustable timeouts for NuGet #3383

merged 3 commits into from
Oct 24, 2018

Conversation

DialPawlowski
Copy link
Contributor

Timeout adjustable for sending request and stream processing.

Timeout adjustable for sending request and stream processing.
@@ -880,19 881,34 @@ let private downloadAndExtractPackage(alternativeProjectRoot, root, isLocalOverr
ensureDir targetFileName

use _trackDownload = Profile.startCategory Profile.Category.NuGetDownload
let! tok = Async.CancellationToken
let taskTimeout =
match Environment.GetEnvironmentVariable("PAKET_RESOLVER_TASK_TIMEOUT") with
Copy link
Member

Choose a reason for hiding this comment

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

can we please get some docs for that?

…esponse of the stream for the package to be downloaded and for the read and write stream operations on the package to be downloaded.

Add comments to the functionality.
@DialPawlowski
Copy link
Contributor Author

DialPawlowski commented Oct 17, 2018

We have updated the functionality in the NuGet.fs and added comments to the timeouts.
We use the paket Version 5.176.9.
I hope that these information are enough.

Please let us know if something is missing or if something is unclear.

@forki
Copy link
Member

forki commented Oct 17, 2018

can you please document it in the docs? Not sure where it would belong, but if you don't find a better place you may formulate it as a FAQ and put it in /docs/content/faq.md

@DialPawlowski
Copy link
Contributor Author

We made a short entry in the FAQ and we hope that's enough.

@forki forki merged commit ebdf206 into fsprojects:master Oct 24, 2018
@matthid
Copy link
Member

matthid commented Oct 24, 2018

I'm not sure, but shouldn't there be a way to make it work by default without the need to force our users to setup every timeout by hand?

@Vidarls
Copy link
Contributor

Vidarls commented Oct 24, 2018

@forki thanks for merging and deploying. Just tested, and after a painstaking 4 minute DL time, restore succeeded.

@b0urb4k1
Copy link
Contributor

b0urb4k1 commented Oct 25, 2018

Could you close the accompanying issue please?
#3384

@matthid
There is at least one other timeout that is handled the same way.
PAKET_RESOLVER_TASK_TIMEOUT

Reworking this now is not a big issue i guess, at least now we can work with paket again.
What would be your proposal for the issue? If you do not want the download or write to
timeout in general the issue could be fixed by just setting everything to -1 for the default
i would assume.

Other fixes would have to be made in Nexus i guess, the Nuget package feed implementation
does not seem to be 100% compadible to the normal feed implementation i guess.

@forki
Copy link
Member

forki commented Oct 30, 2018

This created a new issue #3407. Can you please help?

@forki
Copy link
Member

forki commented Oct 30, 2018

there are multiple people having issues. I'm reverting for now. Let's try to find a solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants