aioes icon indicating copy to clipboard operation
aioes copied to clipboard

When program terminate, asyncio:Unclosed client session

Open zpoint opened this issue 7 years ago • 2 comments

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)

zpoint avatar Apr 01 '17 09:04 zpoint

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

hyhlinux avatar Dec 18 '17 09:12 hyhlinux

@zpoint, and it works

hyhlinux avatar Dec 18 '17 09:12 hyhlinux