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

specify "close connection" in request header #7

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

Conversation

mbw4
Copy link
Contributor

@mbw4 mbw4 commented Apr 28, 2015

If an instance of Session is not destroyed and reused again, the request library will reopen a new connection every time sync() is called. Old connections remain "waiting for closing". If sync() is called in regular time intervals, the system will hit the "maximum open files" limit.

This can be fixed by explicitly specifying "Connection": "close" in the request header.

@saroele
Copy link
Contributor

saroele commented Nov 17, 2015

This may solve all the warnings we get about maximum number of collections?

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