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

Request: Specify a longer timeout, similar to pip --timeout <seconds> #2200

Closed
2 tasks done
jabozzo opened this issue Mar 19, 2020 · 5 comments
Closed
2 tasks done

Request: Specify a longer timeout, similar to pip --timeout <seconds> #2200

jabozzo opened this issue Mar 19, 2020 · 5 comments
Labels
status/duplicate Duplicate issues

Comments

@jabozzo
Copy link

jabozzo commented Mar 19, 2020

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

For devices with unstable internet connection, poetry can fail when using install or update. This can be solved by exporting PIP_DEFAULT_TIMEOUT. But since in the roadmap specifies that pip will be dropped in the future a command line option for specifying this option could be implemented. The option could be implemented as follows:

poetry install --timeout 120 # 120 seconds of timeout
poetry update --timeout 60 # 60 seconds of timeout
@jabozzo jabozzo added the kind/feature Feature requests/implementations label Mar 19, 2020
@muppetjones
Copy link

I'd also like to see this. I'm having significant issues trying to use poetry with a private repo (I've followed the documentation and several associated issues), and it's difficult to test variations with the timeout is set too high. I really like the features that poetry provides, but it's a little disappointing that some of the basic features of pip are not available in v1.

@pythoninthegrass
Copy link

I was able to workaround the timeout via export PIP_DEFAULT_TIMEOUT=100 via Stack Overflow.

Still, would be nice for a direct implementation in Poetry 👌

@Kaiser1989
Copy link

Kaiser1989 commented Oct 12, 2022

Seems that PIP_DEFAULT_TIMEOUT does not work for publishing:
Read timed out. (read timeout=15)

Found the place to fix it:
poetry.utils.constants
There the constant timeout is set to 15s. This is way too short.

@neersighted neersighted added status/duplicate Duplicate issues and removed kind/feature Feature requests/implementations labels Oct 12, 2022
@neersighted
Copy link
Member

Duplicating onto #6009 as it better reflects the current state of the code.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2022
Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

5 participants