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

Never consider httplib timeout safe #2

Closed
wants to merge 2 commits into from
Closed

Conversation

eskil
Copy link

@eskil eskil commented Jun 12, 2014

@eskil
Copy link
Author

eskil commented Jun 12, 2014

15:09:36 eskil ~/src/github/eskil/py-look-for-timeouts (master)$ python -m py_look_for_timeouts.main tests/samples/*
tests/samples/bad_httpconnection.py:4   httplib is never timeout safe
tests/samples/bad_httpconnection.py:5   httplib is never timeout safe
tests/samples/bad_httpconnection.py:6   httplib is never timeout safe
tests/samples/bad_httpconnection.py:7   httplib is never timeout safe
tests/samples/bad_httpconnection.py:8   httplib is never timeout safe
tests/samples/bad_httpconnection.py:9   httplib is never timeout safe
tests/samples/bad_requests.py:3 requests call without a timeout arg or kwarg
tests/samples/bad_requests.py:4 requests call with a timeout kwarg of 0
tests/samples/bad_requests.py:5 requests call without a timeout arg or kwarg
tests/samples/bad_requests.py:6 requests call without a timeout arg or kwarg
tests/samples/bad_requests.py:7 requests call with a timeout kwarg of 0
tests/samples/bad_script.py:3   urlopen call without a timeout arg or kwarg
tests/samples/bad_script.py:4   urlopen call with a timeout kwarg of 0
tests/samples/bad_script.py:6   urlopen call with a timeout arg of 0
tests/samples/bad_script_2.py:3 urlopen call without a timeout arg or kwarg
tests/samples/bad_script_2.py:4 urlopen call with a timeout kwarg of 0
tests/samples/bad_script_2.py:6 urlopen call with a timeout arg of 0
tests/samples/bad_twilio_connection.py:4    twilio rest connection without a timeout arg or kwarg
tests/samples/bad_twilio_connection.py:5    twilio rest connection without a timeout arg or kwarg
tests/samples/bad_twilio_connection.py:6    twilio rest connection with a timeout kwarg of 0
tests/samples/bad_twilio_connection.py:7    twilio rest connection without a timeout arg or kwarg
tests/samples/bad_twilio_connection.py:8    twilio rest connection without a timeout arg or kwarg
tests/samples/bad_twilio_connection.py:9    twilio rest connection with a timeout arg of 0
tests/samples/good.py:15    httplib is never timeout safe
tests/samples/good.py:16    httplib is never timeout safe

@eskil
Copy link
Author

eskil commented Jun 24, 2014

bmup

@eskil
Copy link
Author

eskil commented Jun 25, 2014

n/m me. I could've sworn we repeatedly had the problem described above at yelp.

@eskil eskil closed this Jun 25, 2014
@Roguelazer
Copy link
Contributor

That was with Python 2.5.

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.

2 participants