Re: m2crypto - close_wait when running echod_async
Andre Reitz <[email protected]>
| Newsgroups | gmane.comp.python.cryptography |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 23 Jun 2004 17:43:13 +0800 Ng Pheng Siong <[email protected]> wrote: > On Wed, Jun 23, 2004 at 10:07:10AM +0200, Andre Reitz wrote: > > Is it possible to use select() on a M2Crypto.SSL.Connection? > > ZServerSSL extends the Medusa-based ZServer, Medusa uses select, ZServerSSL > works, so it is possible! ;-) > > But currently it is a bit roundabout: asyncore's dispatcher class, upon > which ZServer is based, has this magic method: > > # cheap inheritance, used to pass all other attribute > # references to the underlying socket object. > def __getattr__ (self, attr): > return getattr (self.socket, attr) > > SSL.Connection conveniently stores its underlying socket object as the > instance variable "socket", so the above magic method allows Medusa to work > with ZServerSSL's SSL.Connection object without any explicit code to do so. > > You may wish to add either the above magic method to class SSL.Connection, > or an explicit "select" method. (I'd do it myself when I find the time, > probably the former.) > > Cheers. Thanks for your quick response. What I meant is: is it legal to use the standard select method on the underlying socket of a m2crypto SSL.Connection Object, or are there problems bacause of the ssl-protocol lying on the socket? Greetings, Andre' > > -- > Ng Pheng Siong <[email protected]> > > http://firewall.rulemaker.net -+- Firewall Version Control > http://sandbox.rulemaker.net/ngps -+- ZServerSSL/Zope Windows Installers -- __________________________________________________________________________ Als Technologieunternehmen konzipieren und entwickeln wir maßgeschneiderte Feedback- und Monitoring-Systeme - wie beispielsweise Lösungen für Beschwerde- und Ideenmanagement. Mit dem Inquery® Survey Server bieten wir eine der leistungsfähigsten Standardlösungen für Online-Umfragen mit dem Schwerpunkt auf der Messung von Kundenzufriedenheit an. __________________________________________________________________________ Inworks GmbH Andre Reitz, Leiter Entwicklung Hörvelsinger Weg 39, 89081 Ulm, Germany Tel +49 (0) 731 / 93807-21 Fax +49(0)731/93807-18 Internet: http://www.inworks.de