-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
end_session
can‘t terminate the session,cause session persistence.
#28
Comments
It looks like you are using the client with SpirentTestCenter's stcweb (since it port 8888). The end_tcsession='kill' option for stc.end_session() is not supported by stcweb yet (it is only supported on the SpirentTestCenter LabServer's stc-rest-api service). There is an open PR to provide it on stcweb (https://github.com/SpirentOrion/stc-web/pull/94) but it was never submitted. Not sure whether there was a problem with those changes or not. At this point we are investigating replacing the LabServer stc-rest-api service with stcweb and as part of that, the 'kill' option will have to be supported. So we will soon be looking into that PR to see if there was an issue with it, and if so, what needs to be done to get it working to the point that it can be submitted. |
Thank you for your response. appreciate your efforts and hope to see this submitted soon. |
@keymou after looking into this a bit more, it appears that it should be working with stcweb. In my testing the only time it did not terminate the In your code example in
That way, even if you have somehow become disassociated with the session at the time it is called, it would still work. If you are sure the session is still joined at the time |
Environment: Windows7
stcrestclient: 1.9.0
python:3.8
end_session
cannot disconnect the session. TheTestCenterSession.exe
created bynew_session
can still be seen through the task manager and is in the running state. This will cause a problem. Callnew_session
repeatedly to create a new session, and eventually the number of connections will exceed the maximum number of connections in the server thread pool, resulting in the creation of session failedHopefully the
end_session
can be fixed.The text was updated successfully, but these errors were encountered: