aioes
aioes copied to clipboard
When program terminate, asyncio:Unclosed client session
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 , i meet too, Can you provide a patch
@zpoint, and it works