classification
Title: asyncio: calling _UnixSelectorEventLoop.create_unix_server(sock=..., path=...) must fail
Type: Stage:
Components: Versions: Python 3.5, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, haypo, python-dev, yselivanov
Priority: normal Keywords: patch

Created on 2014-04-04 16:57 by haypo, last changed 2014-04-07 09:23 by haypo. This issue is now closed.

Files
File name Uploaded Description Edit
unix.patch haypo, 2014-04-04 16:57 review
Messages (2)
msg215536 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2014-04-04 16:57
_UnixSelectorEventLoop.create_unix_server() can be called with path *and* sock. In this case, the sock parameter is ignored.

Attached patch changes the method to raise a ValueError, to have the same behaviour than create_connection().
msg215679 - (view) Author: Roundup Robot (python-dev) Date: 2014-04-07 09:22
New changeset a6b764848b20 by Victor Stinner in branch '3.4':
Issue #21155: asyncio.EventLoop.create_unix_server() now raises a ValueError if
http://hg.python.org/cpython/rev/a6b764848b20

New changeset 34ace7eb67e9 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21155: asyncio.EventLoop.create_unix_server() now raises a
http://hg.python.org/cpython/rev/34ace7eb67e9
History
Date User Action Args
2014-04-07 09:23:26hayposetstatus: open -> closed
resolution: fixed
2014-04-07 09:22:28python-devsetnosy: + python-dev
messages: + msg215679
2014-04-04 16:57:31haypocreate