Skip to content

Improve session management #148

Open

Description

@tfardet

Overall requests.Session objects do not seem to be managed consistently (or sometimes even just properly) throughout the code.
Though I don't think it is likely to lead to severe issues, it could be made cleaner and generally more straightforward to understand if with statements were used systematically, together with actual benchmarks to see whether this improves performance.

Activity

  1. added
    enhancement
    on May 16, 2023
  2. hadrilec commented on May 20, 2023

    @hadrilec
    Contributor

    I agree using with everywhere in the package is the best option.
    Normally, thanks to this commit 17ea1c7, all remaining open sessions should have been closed.

  3. tfardet commented on Aug 17, 2023

    @tfardet
    CollaboratorAuthor

    Once #162 is merged, store the session object in the config dict and use it throughout the code (cf. tgradje's comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions