Skip to content

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