From: Martin <md...@md...> - 2002-10-06 18:22:30
|
s=C3=B6n 2002-10-06 klockan 19.28 skrev Dave Aitel: > On Sun, 2002-10-06 at 06:46, Martin Sj=C3=B6gren wrote: >=20 > > If you're running multithreaded, you'd do well to use > > OpenSSL.tsafe.Connection instead of OpenSSL.SSL.Connection (tsafe stand= s > > for thread safe :)) >=20 > hmm. How does one do this exactly? > -dave >=20 >=20 > self.mysocket =3D OpenSSL.tsafe.Connection(ctx, self.mysocket) > self.mysocket =3D OpenSSL.tsafe.Connection(ctx, self.mysocket) > AttributeError: 'module' object has no attribute 'tsafe' D'oh! I must have forgotten to import tsafe from the __init__.py file. If you do import OpenSSL.tsafe, or from OpenSSL import tsafe, it works. /Martin |