-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Do not reuse requests sessions #3230
Conversation
When running under certain environment, reuse of request sessions maybe causing network connectivity issues. This change ensures that request sessions are not reused across requests. Relates-to: python-poetry#3219
This seems to fix the issue; verified by the community on the issue. |
please get this released asap, we have had broken Travis builds for many days now because of this. |
@sloev I can appreciate your urgency. But please consider that this is a community project with a very small team of volunteers. Would appreciate it if you refrained from demands, I am going to assume this was not the intention. As for your build issues. You can consider temporarily disabling the experimental installer as described here untill |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
However, do you know whether the overhead of having to create new sessions for each download is negligible or not?
There will be a performance hit. Last I checked, for around 50 packages in a clean environment it was around 2-3 seconds. That said, it will vary according to groups etc. But I think it is reasonable enough for now until we move to a more ... parallel safe http client. Right now since this is a major issue in container environments, I think we should go ahead with it. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When running under certain environment, reuse of request sessions maybe
causing network connectivity issues. This change ensures that request
sessions are not reused across requests.
Relates-to: #3219