-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
[18:58:45.435] Unhandled error in task.
Traceback (most recent call last):
File "asyncio\windows_events.py", line 566, in accept_coro
File "asyncio\windows_events.py", line 803, in _poll
File "asyncio\windows_events.py", line 555, in finish_accept
OSError: [WinError 64] 指定的网络名不再可用。
[18:58:45.437] Unhandled error in task.
Traceback (most recent call last):
File "asyncio\proactor_events.py", line 846, in loop
OSError: [WinError 64] 指定的网络名不再可用。
I've previously reported this issue, and while it was difficult to reproduce consistently, I've finally pinpointed the steps. This bug exists across multiple versions, from 9 through 11.
The problem occurs when a client is connected to mitmproxy, and the Windows machine (Win10 or Win11) either has its local network connection disabled (disconnected from the network) or enters sleep mode (also disconnecting from the network) for an extended period, specifically 20 minutes or longer. Upon restoring the network connection, the error message appears. After the error appears, mitmproxy no longer receives or processes data, even though the network connection has been restored.
I previously submitted this issue, and at that time, the cause was high network usage leading to an inability to connect to the internet. In other words, any prolonged network disconnection can reproduce this bug.