-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BUG] Script execution massively delayed #1812
Comments
Hi @patschi ,
Can't tell right now because my dual boot machines run under Linux but I am afraid that is not unsusal for Windows (IIRC less for WSL, more for Cygwin and the like). The Windows emulation of Linux is bad doing forks, every subprocess / subshell is using that. And there are a lot. But we can check whether it got stuck somewhere: Top dogs in a negative sense for me are here:
So, what do you have? |
As said I'm simply running Also I'm using WSL2, so it's a Ubuntu 20.04 VM virtualized via Hyper-V, so there's not the classic WSL version 1 magic involved and it should be way faster. |
Sorry, was too much work probably. Please try |
Just curious (and OT): does that (=Hyper-V virtualization layer) happen per default with the October release of W10 when one uses WSL? |
That's indeed a very detailed output, helps indeed. The following also repeats and seems to the delay everything the most:
Does this help in any way?
AFAIK: On upgraded Windows installation its default remains at version 1. Newer installations default to version 2. On upgraded installations you can upgrade from WSL1 to WSL2 with a few simple steps - in this upgrade process e.g. the Linux kernel will be installed and moved into a lightweight Hyper-V VM, works just fine. |
So each one takes an eternity? What does It smells a bit like a DNS problem which we had that reported back some time, see #1738. |
please also try |
Can you try the branch windows_dns_fix using |
I updated the branchwindows_dns_fix , see commit log. basically this should be a good improvement. My main concern is that other users encounter longer delays, depending on the windows config, so if it can be found out during testing that this is not happening would be appreciated! Please comment in #1738. |
This commit provides a global variable to the RFC 6761 use of "invalid." which WSL clients don't seem to handle very well, see #1738, #1812. "invalid." is used as a target to find out in a couple of pre-checks what is supported by the openssl version. This PR reduces the number of ``openssl s_client -connect`` by a huge factor. For the remaining invocations the OS used is being determined and if WSL is assumed (the check is probably not 100% accurate) it uses ``127.0.0.1:0`` instead. In (unfortunately only a few) pre-tests the response was immediate. Also it is possible to use another target if needed by NXCONNECT=<mytargethere>:<myport> ./testssl.sh <URL> This is for 3.0. For 3.1dev see #1988 .
Command line / docker command to reproduce
Running
testssl.sh
, parameters doesn't matter.Current issue
git clone --depth 1 https://github.com/drwetter/testssl.sh.git
(This issue is NOT reproducible on latest3.0
version)Example:
To note: For debugging purposes I've only added
set -x
at the beginning of the bash script.Expected behavior
Not having such a long delay.
Your system (please complete the following information):
-> Ran in WSL2
The text was updated successfully, but these errors were encountered: