[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2019-05-07 Thread yjq
yjq added the comment: updated: I tried the test.py and it didn't show this error. So I think what I got is not the same problem as issue33350 although it shows the same traceback message. -- ___ Python tracker

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2019-03-14 Thread yjq
yjq added the comment: I'm using python 3.7.2. And I met the same problem. -- nosy: +yjqiang ___ Python tracker ___ ___

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: What Python version do you use? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-12-28 Thread Alisue Lambda
Alisue Lambda added the comment: https://github.com/python/asyncio/pull/419 It seems the PR above which has not merged solve the issue. -- ___ Python tracker ___

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-08-07 Thread Alisue Lambda
Alisue Lambda added the comment: I use the following patch to fix the behavior in Windows. ``` import sys if sys.platform != 'win32': def patch(): pass else: def patch(): """Patch selectors.SelectSelector to fix WinError 10038 in Windows Ref:

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-04-24 Thread Alisue Lambda
Alisue Lambda added the comment: I've found an workaround. The point is that 'with s' should be included in a coroutine which will be timed-out. import asyncio import socket ADDR = ('10.0.2.1', 22) async def check(loop): s =

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-04-24 Thread Alisue Lambda
Alisue Lambda added the comment: I should have mentioned that the script works well on macOS and Linux. This issue exists only on Windows. -- ___ Python tracker

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-04-24 Thread Alisue Lambda
New submission from Alisue Lambda : This is my first time to create an issue on the python bug tracker so let me know if I don't follow the rule which I need to follow. # Summary Using 'loop.sock_connect' with 'asyncio.wait_for' raises 'OSError [WinError 10038]' in