Skip to content

BUG-6062: Instantiate new requests session on APIRequest initialization#7

Open
jose-lpa wants to merge 1 commit into
masterfrom
jp/BUG-2062-Connection_issues
Open

BUG-6062: Instantiate new requests session on APIRequest initialization#7
jose-lpa wants to merge 1 commit into
masterfrom
jp/BUG-2062-Connection_issues

Conversation

@jose-lpa

@jose-lpa jose-lpa commented Mar 1, 2021

Copy link
Copy Markdown
  • Stop using global variable for requests.Session(), as this will be called only once during the entire app/pod lifespan.
  • Move the session instantiation to the constructor of APIRequest, so we get fresh, still reusable sessions when needed.

ℹ️ Further details about this PR can be read in my BUG-2062 comment.

@ciplentific

Copy link
Copy Markdown

@selinfildis, @klplentific: please review this pull request.

Powered by pull-review

@ciplentific

Copy link
Copy Markdown

@apastors: please review this pull request.

Powered by pull-review

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.

4 participants