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

Properly close the connections #171

Open
idev opened this issue Sep 14, 2020 · 0 comments
Open

Properly close the connections #171

idev opened this issue Sep 14, 2020 · 0 comments

Comments

@idev
Copy link

idev commented Sep 14, 2020

Hello,

first of all, thank you for your work - awesome tool.

I think I stumble about a issue regarding handling connections.

If connections are not properly closed, they kept alive, which leads to errors:
https://stackoverflow.com/questions/10115126/python-requests-close-http-connection
So as far as I understand there are two options, to set headers properly (keep-alive: false, or to close the request at the end).

My problem is the following error:
requests.exceptions.ConnectionError: ('Connection aborted.', TimeoutError(10060, ....)
which is happening if i try to get_tweets every 3600 seconds in a while true loop.

Kind regards

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

No branches or pull requests

1 participant