[pyOpenSSL] PyEval_RestoreThread: NULL tstate

Dave Aitel dave at immunitysec.com
Sun Oct 6 19:28:06 CEST 2002


On Sun, 2002-10-06 at 06:46, Martin Sjögren wrote:

> If you're running multithreaded, you'd do well to use
> OpenSSL.tsafe.Connection instead of OpenSSL.SSL.Connection (tsafe stands
> for thread safe :))
> 
> 
> Regards,
> Martin

hmm. How does one do this exactly?
-dave


        self.mysocket = OpenSSL.tsafe.Connection(ctx, self.mysocket)


Connected to by ('127.0.0.1', 36388)
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.2/threading.py", line 408, in __bootstrap
    self.run()
  File "./spkproxy.py", line 699, in run
    self.connection.startSSLserver()
  File "./spkproxy.py", line 94, in startSSLserver
    self.mysocket = OpenSSL.tsafe.Connection(ctx, self.mysocket)
AttributeError: 'module' object has no attribute 'tsafe'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/pyopenssl-users/attachments/20021006/a71745ce/attachment.pgp>


More information about the pyopenssl-users mailing list