Skip to content
Snippets Groups Projects
Commit fcf64dcc authored by Chris Hines's avatar Chris Hines
Browse files

I think there is a problem with multiple threads creating multiple sessions...

I think there is a problem with multiple threads creating multiple sessions rather being directed tot eh same session
parent 70376a17
No related branches found
No related tags found
2 merge requests!90I think there is a problem with multiple threads creating multiple sessions...,!85I think there is a problem with multiple threads creating multiple sessions...
Pipeline #56700 passed
......@@ -233,6 +233,9 @@ class SSHSession:
from .. import sshsessions
from flask import session, request
import logging
import uwsgi
uwsgi.lock()
logger = logging.getLogger()
sshsessid = session.get('sshsessid', None)
N = 8
......@@ -257,6 +260,7 @@ class SSHSession:
SSHSession.test_sshsession(sshsession)
sshsession.refresh()
uwsgi.unlock()
return sshsession
@staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment