Skip to content

Added timeout on request.get() for ensuring that if a recipient serve…#1772

Merged
ericof merged 3 commits intocookiecutter:mainfrom
openrefactory:icr-fixes
Jun 13, 2023
Merged

Added timeout on request.get() for ensuring that if a recipient serve…#1772
ericof merged 3 commits intocookiecutter:mainfrom
openrefactory:icr-fixes

Conversation

@openrefactory
Copy link
Copy Markdown
Contributor

We have detected this issue on branch main of cokkiecutter project on the version with commit hash e9b3b8. This issue can be addressed as a api usage issue.

Fixes for api usage issue:
In file: cookiecutter/zipfile.py, method unzip a request is made without a timeout parameter. If the recipient server is unavailable to service the request, application making the request may stall indefinitely. our intelligent code repair system iCR suggested that a timeout value should be specified.

This issue was detected by our OpenRefactory's Intelligent Code Repair (iCR). We are running iCR on libraries in the PyPI repository to identify issues and fix them. You will get more info at: pypi.openrefactory.com

…r is unavilabe then the application making request will not stall indefinitely
Copy link
Copy Markdown
Member

@kurtmckee kurtmckee left a comment

Choose a reason for hiding this comment

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

Please remove the extraneous comment. The comment is too long and no advertisement is needed here.

ericof and others added 2 commits June 12, 2023 22:03
Co-authored-by: Kurt McKee <contactme@kurtmckee.org>
@ericof ericof self-requested a review June 13, 2023 02:10
Copy link
Copy Markdown
Member

@ericof ericof 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 @openrefactory for contributing to cookiecutter

@ericof ericof merged commit 2010c3c into cookiecutter:main Jun 13, 2023
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.

3 participants