Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Establishing many outgoing TCP requests in WSL results in eternal Ephemeral port exhaustion only fixed by reboot. #3311

Closed
Suvega opened this issue Jun 18, 2018 · 1 comment

Comments

@Suvega
Copy link

Suvega commented Jun 18, 2018

Windows build number :10.0.17134.112
4.4.0-17134-Microsoft

I have a python script that crawls a media rich webpage using python + chromedriver (via xming).
Leaving two copies of this running for about 2-3 days will 100% of the time result in Ephemeral port exhaustion on the machine. Within 12 hours of that message in the windows system log, another warning will show (TCP/IP failed to establish an outgoing connection because the selected local endpoint was recently used to connect to the same remote endpoint).

After that, all new TCP/IP connections will fail, no additional messages will be thrown into the windows log, and the computer becomes unusable.

The port exhaustion never resolves, tcp ports are not released and only a reboot will restore functionality to the computer.

Common methods to release ports, or to determine which ports are still open show no open ports.
(Both in Windows, as well as Linux).

I have a 100% repro (although it takes about 2-5days to trigger), so I'm happy to provide more information, run additional tools, etc. (I just have no idea on what you would need to dig into this)

@therealkenc
Copy link
Collaborator

#2913

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants