[New-bugs-announce] [issue21437] document that asyncio.ProactorEventLoop doesn't support SSL

akira report at bugs.python.org
Mon May 5 15:32:12 CEST 2014

New submission from akira:

In Lib/asyncio/proactor_events.py:419 [1]:

  def _start_serving(self, protocol_factory, sock, ssl=None, server=None):
    if ssl:
      raise ValueError('IocpEventLoop is incompatible with SSL.')

[1]: http://hg.python.org/cpython/file/4f26430b03fd/Lib/asyncio/proactor_events.py#l419

ProactorEventLoop is mentioned in the docs that it should be used to run 
subprocesses on Windows. [2]

[2]: http://hg.python.org/cpython/file/4f26430b03fd/Doc/library/asyncio-subprocess.rst

It might be a good example to demonstrate the idiomatic way how two different 
event loops could be used (to support both subprocesses and ssl connections in 
the same program).

assignee: docs at python
components: Documentation
messages: 217921
nosy: akira, docs at python
priority: normal
severity: normal
status: open
title: document that asyncio.ProactorEventLoop doesn't support SSL
type: enhancement
versions: Python 3.4, Python 3.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list