Skip to content
This repository has been archived by the owner on Nov 7, 2021. It is now read-only.

When program terminate, asyncio:Unclosed client session #129

Open
zpoint opened this issue Apr 1, 2017 · 2 comments
Open

When program terminate, asyncio:Unclosed client session #129

zpoint opened this issue Apr 1, 2017 · 2 comments

Comments

@zpoint
Copy link

zpoint commented Apr 1, 2017

Just instantiate Elasticsearch

es = Elasticsearch(["localhost:8000"])

When terminate:

Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7f64807de208>

Should aioes->connection.py->class Connection has a destructor ?

`

   def __del__(self):
          self._session.close()

`

aiohttp (2.0.4)

@hyhlinux
Copy link

@zpoint , i meet too, Can you provide a patch

@hyhlinux
Copy link

@zpoint, and it works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants