Closed
Description
Bug report
Bug description:
import asyncio
import socket
s = socket.socket()
await asyncio.get_running_loop().sock_connect(s,('127.0.0.1',80))
according to https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.sock_connect and
cpython/Lib/asyncio/selector_events.py
Lines 617 to 630 in 5d8a3e7
it should raise. however,
ProactorEventLoop
doesn't follow the rule
should we fix this, any thoughts
CPython versions tested on:
3.12
Operating systems tested on:
Windows
Linked PRs
- gh-113892: Add a extra check to
ProactorEventLoop.sock_connect
to ensure that the given socket is in non-blocking mode #119519 - [3.13] gh-113892: Add a extra check to
ProactorEventLoop.sock_connect
to ensure that the given socket is in non-blocking mode (GH-119519) #119912 - [3.12] gh-113892: Add a extra check to
ProactorEventLoop.sock_connect
to ensure that the given socket is in non-blocking mode (GH-119519) #119913
Metadata
Metadata
Assignees
Projects
Status
Done