You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello team, I wanted to inquire about the possibility of adding support for handling sessions in a multi threaded application.
An example of this can be found in the python-pcks11 library.
Since we use this library for its better compatibility with the Thales network HSM, but we faced an issue when using multiple threads with gunicorn we would get the error code CKR_OPERATION_ACTIVE since the thread tried to use a session that was already in use.
The text was updated successfully, but these errors were encountered:
Hi @hassan-kamaledine , It's been a while since I've done pycryptoki with threading. There's nothing built into pycryptoki that is plug-and-play, but there's also nothing that makes it impossible to implement yourself, via a session pool that threads would grab from & use.
Hello team, I wanted to inquire about the possibility of adding support for handling sessions in a multi threaded application.
An example of this can be found in the python-pcks11 library.
Since we use this library for its better compatibility with the Thales network HSM, but we faced an issue when using multiple threads with gunicorn we would get the error code CKR_OPERATION_ACTIVE since the thread tried to use a session that was already in use.
The text was updated successfully, but these errors were encountered: