[
https://issues.apache.org/jira/browse/TINKERPOP-2662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17455975#comment-17455975
]
Lyndon Bauto commented on TINKERPOP-2662:
-----------------------------------------
There is a user reporting this here on stackoverflow
https://stackoverflow.com/questions/69579542/gremlin-python-how-can-i-avoid-unclosed-client-session-when-existing-my-prog
> Unclosed client session and stacktrace pops up when cleanup is missed
> ---------------------------------------------------------------------
>
> Key: TINKERPOP-2662
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2662
> Project: TinkerPop
> Issue Type: Bug
> Components: python
> Reporter: Lyndon Bauto
> Priority: Major
>
> Recently the aiohttp transport layer was introduced. This uses an event loop.
> The transport layer cleans up when close is called on it, however in some
> cases, a user may not call close, due to exceptions in their code, or
> improper usage.
> In this case, the user will get an error message saying 'Unclosed client
> session' and a stack trace that shows aiohttp trying to shutdown and
> expecting things to be closed but they are left open. aiohttp then cleans
> this up under the hood, but we should be closing things down properly in
> advance.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)