Comment 4 for bug 669335

Revision history for this message
Ivan Kozik (ludios) wrote :

Listening on an SSL endpoint with Twisted (trunk r30354) results in this:

Traceback (most recent call last):
  File "app_main.py", line 33, in run_toplevel
  File "/usr/local/bin/twistd", line 18, in <module>
    run()
  File "/opt/pypy-latest/site-packages/twisted/scripts/twistd.py", line 27, in run
    app.run(runApp, ServerOptions)
  File "/opt/pypy-latest/site-packages/twisted/application/app.py", line 631, in run
    runApp(config)
  File "/opt/pypy-latest/site-packages/twisted/scripts/twistd.py", line 23, in runApp
    _SomeApplicationRunner(config).run()
  File "/opt/pypy-latest/site-packages/twisted/application/app.py", line 374, in run
    self.application = self.createOrGetApplication()
  File "/opt/pypy-latest/site-packages/twisted/application/app.py", line 434, in createOrGetApplication
    ser = plg.makeService(self.config.subOptions)
  File "/home/elf/Projects/Minerva/minerva/tap.py", line 91, in makeService
    httpServer = strports.service(httpStrport, httpSite)
  File "/opt/pypy-latest/site-packages/twisted/application/strports.py", line 77, in service
    endpoints._serverFromStringLegacy(reactor, description, default),
  File "/opt/pypy-latest/site-packages/twisted/internet/endpoints.py", line 719, in _serverFromStringLegacy
    nameOrPlugin, args, kw = _parseServer(description, None, default)
  File "/opt/pypy-latest/site-packages/twisted/internet/endpoints.py", line 710, in _parseServer
    return (endpointType.upper(),) + parser(factory, *args[1:], **kw)
  File "/opt/pypy-latest/site-packages/twisted/internet/endpoints.py", line 576, in _parseSSL
    cf = ssl.DefaultOpenSSLContextFactory(privateKey, certKey, **kw)
  File "/opt/pypy-latest/site-packages/twisted/internet/ssl.py", line 89, in __init__
    self.cacheContext()
  File "/opt/pypy-latest/site-packages/twisted/internet/ssl.py", line 94, in cacheContext
    ctx = self._contextFactory(self.sslmethod)
SystemError: <StackOverflow object at 0x8931114>