cmake -B . -S "../osslsigncode-2.7" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make
ctest Release
yields the following error during testing:
Start 173: stop_server
173/174 Test #173: stop_server .......................***Failed 0.02 sec
Testing/Temporary/LastTest.log contains:
173/174 Test: stop_server
Command: "/usr/bin/python3.11" "/home/mosu/packaging/mosu-arch/maintained/osslsigncode/src/build/Testing/client_http.py"
Directory: /home/mosu/packaging/mosu-arch/maintained/osslsigncode/src/build
"stop_server" start time: Dec 21 11:04 CET
Output:
----------------------------------------------------------
OSError: [Errno 111] Connection refused
<end of output>
Test time = 0.02 sec
----------------------------------------------------------
Test Failed.
"stop_server" end time: Dec 21 11:04 CET
"stop_server" time elapsed: 00:00:00
The server is still running, though, and the logged port number is correct:
This is due to Testing/client_http.py trying to connect to localhost, which on my machine (and most likely a lot of others) resolves to both 127.0.0.1 & ::1. The client then tries to connect via IPv6 while server only listens on the IPv4 address. The result is the observed connection refused.
One solution is to change client_http.py to try to connect to 127.0.0.1 instead of localhost. It seems that there's no easy way to let ThreadingHTTPServer bind to both IPv4 & IPv6 when using localhost as the address, unfortunately.
osslsigncode v2.7
Building on Arch Linux with:
yields the following error during testing:
Testing/Temporary/LastTest.log
contains:The server is still running, though, and the logged port number is correct:
This is due to
Testing/client_http.py
trying to connect tolocalhost
, which on my machine (and most likely a lot of others) resolves to both127.0.0.1
&::1
. The client then tries to connect via IPv6 while server only listens on the IPv4 address. The result is the observedconnection refused
.One solution is to change
client_http.py
to try to connect to127.0.0.1
instead oflocalhost
. It seems that there's no easy way to letThreadingHTTPServer
bind to both IPv4 & IPv6 when usinglocalhost
as the address, unfortunately.