|
From: Dave A. <da...@im...> - 2002-10-06 17:34:24
|
On Sun, 2002-10-06 at 06:46, Martin Sj=F6gren 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 :))
>=20
>=20
> Regards,
> Martin
hmm. How does one do this exactly?
-dave
self.mysocket =3D 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 =3D OpenSSL.tsafe.Connection(ctx, self.mysocket)
AttributeError: 'module' object has no attribute 'tsafe'
|