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

Intermittent timeouts in test-tls-min-max-version.js #28337

Closed
kball opened this issue Jun 21, 2019 · 6 comments
Closed

Intermittent timeouts in test-tls-min-max-version.js #28337

kball opened this issue Jun 21, 2019 · 6 comments
Labels
flaky-test Issues and PRs related to the tests with unstable failures on the CI. macos Issues and PRs related to the macOS platform / OSX. test Issues and PRs related to the tests. tls Issues and PRs related to the tls subsystem.

Comments

@kball
Copy link
Contributor

kball commented Jun 21, 2019

  • Version: v13.0.0-pre (built from src at commit e6edd66)
  • Platform: Darwin Kernel Version 17.7.0: Wed Apr 24 21:17:24 PDT 2019; root:xnu-4570.71.45~1/RELEASE_X86_64 x86_64
  • Subsystem: openssl/tls

Attempting to run make test, or running test/parallel/test-tls-min-max-version.js in isolation I get intermittent timeouts.

@addaleax addaleax added test Issues and PRs related to the tests. tls Issues and PRs related to the tls subsystem. labels Jun 21, 2019
@sam-github
Copy link
Contributor

Can you post the output? Also, just to confirm, what were your configure options?

@sam-github sam-github added the macos Issues and PRs related to the macOS platform / OSX. label Jun 21, 2019
@kball
Copy link
Contributor Author

kball commented Jun 21, 2019

I ran ./configure with no options; where should I look to find any info on what it determined that will be helpful?

I unfortunately did not save the output and am not currently able to reproduce. :( I'll keep trying and post it if I repro it again. Sorry for not thinking of that.

@sam-github
Copy link
Contributor

Knowing that there were no options is enough.

Without some output, its hard to guess, much less repro. This runs regularly in CI on macos, and many (most?) devs are using macos, so its surprising. It also is a pretty simple test with no subtle timing races or ordering dependencies. Which doesn't mean it doesn't have a bug, but does mean that some clues are needed.

I don't even know what timeout you hit, if you run it standalone, I didn't think there were any timeouts.

@lpinca
Copy link
Member

lpinca commented Jul 28, 2019

I can reproduce with

./tools/test.py -J --repeat=1000 test/parallel/test-tls-min-max-version.js

on master. macOS 10.14.5

@lpinca lpinca added the flaky-test Issues and PRs related to the tests with unstable failures on the CI. label Jul 28, 2019
@lpinca
Copy link
Member

lpinca commented Jul 28, 2019

I dug a little and noticed a bunch of EADDRNOTAVAIL errors. When this happens

.on('error', function(err) {

is emitted but

}).on('tlsClientError', function(err, sock) {

is not. As a result the callback is not called and test times out. I've increased the ephemeral port range

$ sudo sysctl -w net.inet.ip.portrange.first=32768
net.inet.ip.portrange.first: 49152 -> 32768

and reduced the duration of the TIME_WAIT state

$ sudo sysctl net.inet.tcp.msl=1000
net.inet.tcp.msl: 15000 -> 1000

and now it works with no timeouts. I'm not sure if there is anything actionable to do.

@targos
Copy link
Member

targos commented Nov 20, 2021

Closing as there was no recent activity

@targos targos closed this as completed Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Issues and PRs related to the tests with unstable failures on the CI. macos Issues and PRs related to the macOS platform / OSX. test Issues and PRs related to the tests. tls Issues and PRs related to the tls subsystem.
Projects
None yet
Development

No branches or pull requests

5 participants