Skip to content

CFHT clean up connection pool #71

Description

@phycodurus

aeonlib.osc.facility.OCSFacility does this:
`
def init(self, settings: Settings = default_settings):
...
self.client: httpx.Client = httpx.Client(
base_url=self.api_root(settings), headers=headers
)

def __del__(self):
   self.client.close()`

CFHTFacility needs the __del__() so it cleans up the connection pool also.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions