close_session required? #820
-
Hi, I'm using objects of the Client class together with a context manager to talk to an OpenPCS7 server:
I've started with the "client minimal" example and introduce my own data handling. My assumption is that using the context manager is enough for tidying up all used resources. However, occasionally - to be honest: quite often, I get Thanks and cheers |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
First: I am not familiar with OpenPCS7 server. The context manager calls aexit which should disconnects the Client. What I can't see is a You may have to take a look what the server limits are...not sure how your setup is built atm. |
Beta Was this translation helpful? Give feedback.
-
interesting issue. the context manager calls disconnect that calls close_session. So in theory the session is closed... |
Beta Was this translation helpful? Give feedback.
-
So, at least I'm on the right side when using the context manager and not closing the session explicitly. That's fine. Considering some other quite interesting behaviors of the OpenPCS7 server I would assume for the moment that it is not this library or my own code which is doing something wrong. |
Beta Was this translation helpful? Give feedback.
interesting issue. the context manager calls disconnect that calls close_session. So in theory the session is closed...