mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
*Moved from python/asyncio#493.* This PR fixes issue python/asyncio#480, as explained in [this comment](https://github.com/python/asyncio/issues/480#issuecomment-278703828). The `_SelectorDatagramTransport.sendto` method has to be modified ~~so `_sock.sendto` is used in all cases (because it is tricky to reliably tell if the socket is connected or not). Could that be an issue for connected sockets?~~ *EDIT* ... so `_sock.send` is used only if `_sock` is connected. It also protects `socket.getsockname` against `OSError` in `_SelectorTransport`. This might happen on Windows if the socket is not connected (e.g. for UDP broadcasting). https://bugs.python.org/issue31922 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| echo.py | ||
| echo2.py | ||
| echo3.py | ||
| functional.py | ||
| test_base_events.py | ||
| test_buffered_proto.py | ||
| test_context.py | ||
| test_events.py | ||
| test_futures.py | ||
| test_locks.py | ||
| test_pep492.py | ||
| test_proactor_events.py | ||
| test_protocols.py | ||
| test_queues.py | ||
| test_runners.py | ||
| test_selector_events.py | ||
| test_sendfile.py | ||
| test_server.py | ||
| test_sock_lowlevel.py | ||
| test_sslproto.py | ||
| test_streams.py | ||
| test_subprocess.py | ||
| test_tasks.py | ||
| test_transports.py | ||
| test_unix_events.py | ||
| test_windows_events.py | ||
| test_windows_utils.py | ||
| utils.py | ||