> I downloaded this one: > http://pypi.python.org/pypi/ssl/1.12 Yes, that's the one. > ...which seems to contain the same test-suite used in the current Not quite. > Python 2.6 distribution available here: > http://svn.python.org/snapshots/ > I looked into test/test_ssl.py but I didn't find any test referencing > to the asyncore module. > I see a class named "AsyncoreHTTPSServer" but it does not use the > asyncore or asynchat modules. Yes, that's right, it uses SocketServer. But that's very close to the same thing. I'll change the name to make it clear. Really, the only interesting part is the "get_request" method, which overrides the "get_request" method from SocketServer.TCPServer, and is very similar to the asyncore.dispatcher "accept" method. You may also need to override the "readable" method on asyncore.dispatcher: def readable(self): if isinstance(self.socket, ssl.SSLSocket): # dispatch any bytes left in the SSL buffer while self.socket.pending() > 0: self.handle_read_event() return True Bill
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4