-
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
Change timeout for session start #23
Comments
I see that in the https://github.com/Spirent/py-stcrestclient/blob/master/stcrestclient/stchttp.py, there is a function to set timeout |
@KrobotP : I don't see a way. That error is coming from the backend and it looks like the value is part of the code and can't be modified via an API call. The method @pozarkar is referring to changes the timeout of the rest client but doesn't affect the timeout in the backend waiting for the STC session to start. |
Thank you for your replies. Calling any method would not help me anyway as this is happening when creating and object (i.e. in init). That is kind of sad that timeout can't be changed. Do you have any idea why these timeouts might occur? Maybe some wrong cleanup of previous session? |
The current timeout is 60 seconds. So for the session to not start up within that time seems like either the server might be getting overloaded. Are you running concurrent STC sessions? If so, how many do you typically have running at the same time? |
I am running only one session at the time. However, it seems to me today that real problem is not that session is not created but it somehow dies during loading of a configuration from xml. I am trying to investigate this in more detail and I will report back if I found something new. |
Well, so I tracked the error to the Having this, I am still unable to tell why a session is not created during the timeout. The only solution for me so far is try to call the method repeatedly, until a session is created. |
Can you see if there are logs on the server side in a location like Thanks. |
Hello,
I am using StcPythonRest for remote STC control. When connecting to the STC, i.e. creating an instance of StcPythonRest class, I often ends with:
RuntimeError: failed to create session: 500 Internal Server Error: server error: timed out waiting for session to start
. I was not able to find any way how to increase this timeout, is it possible somehow?The text was updated successfully, but these errors were encountered: