Skip to content

Add requests session param tip.#201

Merged
solarkennedy merged 1 commit intothefactory:masterfrom
Colstuwjx:requests-session-param
Jun 6, 2017
Merged

Add requests session param tip.#201
solarkennedy merged 1 commit intothefactory:masterfrom
Colstuwjx:requests-session-param

Conversation

@Colstuwjx
Copy link
Copy Markdown

Hi folks,

I'd suggest adding the param note in the MarathonClient initial method as I have been stricken by the requests.session reusing issue.

In my environment, my web server calls a lot of times to marathon via marathon-python, and I initial the client each call, so it appears thousands of TIME_WAIT connections on the server. Thus, adding the session param hint will help the others clear about that.

Thanks.

@solarkennedy solarkennedy merged commit 9671f04 into thefactory:master Jun 6, 2017
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