diff options
| author | Yury Selivanov <yury@magic.io> | 2017-12-15 21:53:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-15 21:53:08 -0500 |
| commit | 572636d42566da8eb6e85d5b8164e9ed8860a255 (patch) | |
| tree | a23e5a697aeaa615448e05afdcb6e1980753437d /Lib/asyncio/unix_events.py | |
| parent | dab4cf210cfbc1ecc9def63c1929ec801c1a0068 (diff) | |
| download | cpython-git-572636d42566da8eb6e85d5b8164e9ed8860a255.tar.gz | |
bpo-27456: Ensure TCP_NODELAY is set on linux (#4231) (#4898)
(cherry picked from commit e796b2fe26f220107ac50667de6cc86c82b465e3)
Diffstat (limited to 'Lib/asyncio/unix_events.py')
| -rw-r--r-- | Lib/asyncio/unix_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index 2806ea8dc9..5ea6c20c67 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -242,7 +242,7 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop): if sock is None: raise ValueError('no path and sock were specified') if (sock.family != socket.AF_UNIX or - not base_events._is_stream_socket(sock)): + not base_events._is_stream_socket(sock.type)): raise ValueError( 'A UNIX Domain Stream Socket was expected, got {!r}' .format(sock)) @@ -297,7 +297,7 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop): 'path was not specified, and no sock specified') if (sock.family != socket.AF_UNIX or - not base_events._is_stream_socket(sock)): + not base_events._is_stream_socket(sock.type)): raise ValueError( 'A UNIX Domain Stream Socket was expected, got {!r}' .format(sock)) |
