Commit 1135bac
committed
Reduce acceptTimeout
I noticed that my tests were very slow to start running. While running
with sbt | ts '%H:%M:%.S', I found that there was almost always exactly
a 5 second delay between starting the process and the first output being
printed. I grepped for 5000 and found this line. Changing this parameter
eliminated the delay for me. The parameter seems to only be used in the
awaitConnection method, which just loops until serverSocket.accept
succeeds (with failure being a socket timeout). This makes me fairly
confident that this change won't break anything. I also would expect any
additional overhead of the extra thread wake ups to be negligible.1 parent 52c8510 commit 1135bac
File tree
1 file changed
+1
-1
lines changed- js-envs/src/main/scala/org/scalajs/jsenv/nodejs
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments