Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Allow connection reuse #361

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

Conversation

eamonnotoole
Copy link
Contributor

We have to use the SDK in environments were the total number of
connections is restricted, where repeatedly opening and closing
connections can cause instability, and with fairly large latencies in
opening a new connection. To aid stability and SDK performance in these
environments we allow for the reuse of https connections as returned by
get_connection(). Connections will be reused when 'reuse_connection' is
set to True or when the ONEVIEWSDK_REUSE_CONNECTION is anything other
than an empty string. We've added a unit-test for this new capability.

Description

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve. e.g., Fixes #1]

Check List

  • New functionality includes testing.
    • All tests pass for Python 2.7+ & 3.4+($ tox).
  • New functionality has been documented in the README if applicable.
    • New functionality has been thoroughly documented in the examples (please include helpful comments).
    • New endpoints supported are updated in the endpoints-support.md file.
  • Changes are documented in the CHANGELOG.

@eamonnotoole eamonnotoole force-pushed the reuse-connection branch 4 times, most recently from e5b7026 to 0b81ebe Compare February 9, 2018 14:57
@soodpr
Copy link
Member

soodpr commented Feb 14, 2018

Can we add this flag-reuse_connection in the sample config file i.e examples/config-rename.json as well?

@soodpr soodpr requested review from sijeesh and soodpr February 14, 2018 07:53
@eamonnotoole
Copy link
Contributor Author

Thanks Priyanka - change to examples/config-rename.json added

@eamonnotoole
Copy link
Contributor Author

@soodpr I'm having difficulty pushing up the change - networking issues on our side - so I'll try again tomorrow AM (my time) when hopefully the problems will be resolved.

@eamonnotoole
Copy link
Contributor Author

@soodpr Change pushed up.

We have to use the SDK in environments where the total number of
connections is restricted, where repeatedly opening and closing
connections can cause instability, and with fairly large latencies in
opening a new connection.  To aid stability and SDK performance in these
environments we allow for the reuse of https connections as returned by
get_connection().  Connections will be reused when 'reuse_connection' is
set to True or when the ONEVIEWSDK_REUSE_CONNECTION is anything other
than an empty string.  We've added a unit-test for this new capability.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backup - Error in settings.py
2 participants