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

EINVAL when connecting to outside TCP port after many connections #3591

Closed
oxygen opened this issue Oct 4, 2018 · 2 comments
Closed

EINVAL when connecting to outside TCP port after many connections #3591

oxygen opened this issue Oct 4, 2018 · 2 comments

Comments

@oxygen
Copy link

oxygen commented Oct 4, 2018

Microsoft Windows [Version 10.0.17134.285]

Linux DESKTOP-EHS2807 4.4.0-17134-Microsoft #285-Microsoft Thu Aug 30 17:31:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux

I have a NodeJS application listening on TCP ports 80 and 443.

Alongside it I have some native Linux application listening on many TCP and UDP ports
and another NodeJS app that is just a TCP client to the other two mentioned apps.

The app needs to make thousands of TCP outgoing calls to some internet address over port 443 (for the record, using the node-fetch client library).
I even set it to have a 100ms cooldown between requests, and made all requests sequential.

At some point it permanently starts to fail all outgoing requests with

  message: 'request to https://some/domain/ failed, reason: connect EINVAL 188.215.115.89:443 - Local (0.0.0.0:0)',
  type: 'system',
  errno: 'EINVAL',
  code: 'EINVAL'

Also it is no longer possible to connect to it from outside the server, so the listening port is also affected.
Importantly, incoming connections do not fail with connection refused, they fail with connection timeout.

The other two apps's existing connections are unaffected and can also receive requests.
However, if restarted, they too show the same behaviour.

Restarting the LxssManager service solves the issue.

@therealkenc
Copy link
Collaborator

Could be like #2913 #3311 et al. No repro.

@oxygen
Copy link
Author

oxygen commented Oct 5, 2018

Yes, I closed this and I'll move there.

Thank you!

@oxygen oxygen closed this as completed Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants