[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2020-05-26 Thread Cheryl Sabella
Cheryl Sabella added the comment: For reference, please note the comments in https://github.com/python/cpython/pull/11403#issuecomment-633779644. -- nosy: +cheryl.sabella ___ Python tracker

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2019-01-02 Thread twisteroid ambassador
Change by twisteroid ambassador : -- pull_requests: +10790, 10791 stage: -> patch review ___ Python tracker ___ ___

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2019-01-02 Thread twisteroid ambassador
Change by twisteroid ambassador : -- pull_requests: +10790 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2018-12-23 Thread twisteroid ambassador
twisteroid ambassador added the comment: Looks like this bug is also cause by using _ensure_resolved() more than once for a given host+port, so it can probably be fixed together with https://bugs.python.org/issue35545 . Masking sock.type should not be necessary anymore since

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2018-11-06 Thread Gus Goulart
Gus Goulart added the comment: This error seems to come from base_events.py, lines 142-145, and since it's an OS specific limitation, I can't see Sebastien's suggestion as a feasible solution. Maybe we could come up with something along the lines of the following patch. What do you think

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2018-07-26 Thread Anton Patrushev
Anton Patrushev added the comment: I created small script showing the error. -- nosy: +apatrushev versions: +Python 3.7 Added file: https://bugs.python.org/file47714/test.py ___ Python tracker

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Can you write a unittest that exposes the bug? -- ___ Python tracker ___ ___ Python-bugs-list

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2018-05-29 Thread Sebastien Bourdeauducq
Sebastien Bourdeauducq added the comment: Windows looks fine. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2018-05-29 Thread Sebastien Bourdeauducq
New submission from Sebastien Bourdeauducq : The current behavior causes an exception to be raised when trying to create a datagram socket and _ipaddr_info returns None (since asyncio then calls loop.getaddrinfo with SOCK_STREAM and IPPROTO_UDP). Preserving socket type is made difficult by