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

Added timeout to session requests #166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

d0lb33
Copy link

@d0lb33 d0lb33 commented Feb 25, 2022

I've been having issues lately with shodan.count with the python client.
It seems to hang at this get request. I went ahead and gave the get request a timeout of 1, while allowing retries up to five times.
This works for me, if there is a better way please feel free to let me know!

Most of the time, it simply needs one retry. I played with the timeout time, and anything above1 takes way to long, 1 seemed to be the best.

I've been having issues lately with shodan.count with the python client.
It seems to hang at this get request. I went ahead and gave the get request a timeout of 1, while allowing retries up to five times.
This works for me, if there is a better way please feel free to let me know!

Most of the time, it simply needs one retry. I played with the timeout time, and anything above1 takes way to long, 1 seemed to be the best.
@d0lb33
Copy link
Author

d0lb33 commented Feb 25, 2022

Fixes #167

@d0lb33
Copy link
Author

d0lb33 commented Feb 25, 2022

I should note this is after consecutively running a program I am writing that calls this count method.

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.

1 participant