[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
wget2 | test-https-enforce-hard2 fails on GNU/Hurd (#690)
From: |
Thomas Uhle (@uhle) |
Subject: |
wget2 | test-https-enforce-hard2 fails on GNU/Hurd (#690) |
Date: |
Sat, 11 Jan 2025 14:25:25 +0000 |
Thomas Uhle created an issue: https://gitlab.com/gnuwget/wget2/-/issues/690
The test `test-https-enforce-hard2` fails on GNU/Hurd systems as can be seen in
a recent [Debian
build](https://buildd.debian.org/status/fetch.php?pkg=wget2&arch=hurd-amd64&ver=2.1.0-5&stamp=1733492723):
```
FAIL: test-https-enforce-hard2
==============================
MHD compiled with 0x01000100, linked with 1.0.1
MHD_OPTION_STRICT_FOR_CLIENT: yes
MHD_OPTION_SERVER_INSANITY: yes
HAVE_MICROHTTPD_HTTP2_H: no
HAVE_GNUTLS_OCSP_H: yes
Removed test directory '../.test_10543'
##### Testing
'/build/reproducible-path/wget2-2.1.0/tests/../src/wget2_noinstall -d
--no-config --no-local-db --max-threads=1 --prefer-family=ipv4 --no-proxy
--timeout 3 --tries=1
--ca-certificate=/build/reproducible-path/wget2-2.1.0/tests/certs/x509-ca-cert.pem
--no-ocsp --https-enforce=hard --default-https-port=32829
--default-http-port=42742 "http://localhost/index.html" 2>&1'
06.134501.311 name=config value=--no-local-db invert=1
06.134501.311 Expanded value = (null)
06.134501.311 name=local-db value=--max-threads=1 invert=1
06.134501.311 name=max-threads value=1 invert=0
06.134501.311 name=prefer-family value=ipv4 invert=0
06.134501.311 name=proxy value=--timeout invert=1
06.134501.311 name=timeout value=3 invert=0
06.134501.311 name=tries value=1 invert=0
06.134501.311 name=ca-certificate
value=/build/reproducible-path/wget2-2.1.0/tests/certs/x509-ca-cert.pem invert=0
06.134501.311 name=ocsp value=--https-enforce=hard invert=1
06.134501.311 name=https-enforce value=hard invert=0
06.134501.311 name=default-https-port value=32829 invert=0
06.134501.311 name=default-http-port value=42742 invert=0
06.134501.311 name=config value=--no-local-db invert=1
06.134501.311 Expanded value = (null)
06.134501.311 name=local-db value=--max-threads=1 invert=1
06.134501.311 name=max-threads value=1 invert=0
06.134501.311 name=prefer-family value=ipv4 invert=0
06.134501.311 name=proxy value=--timeout invert=1
06.134501.311 name=timeout value=3 invert=0
06.134501.311 name=tries value=1 invert=0
06.134501.311 name=ca-certificate
value=/build/reproducible-path/wget2-2.1.0/tests/certs/x509-ca-cert.pem invert=0
06.134501.311 name=ocsp value=--https-enforce=hard invert=1
06.134501.311 name=https-enforce value=hard invert=0
06.134501.311 name=default-https-port value=32829 invert=0
06.134501.311 name=default-http-port value=42742 invert=0
06.134501.311 Local URI encoding = 'ANSI_X3.4-1968'
06.134501.311 Input URI encoding = 'ANSI_X3.4-1968'
06.134501.311 set_exit_status(0)
06.134501.311 *url =
06.134501.311 *3 http://localhost/index.html
06.134501.311 transcoded 10 bytes from 'utf-8' to 'ANSI_X3.4-1968'
06.134501.311 local filename = 'index.html'
06.134501.311 host_add_job: job fname index.html
06.134501.311 host_add_job: 0x2000000204a0 https://localhost/index.html
06.134501.311 host_add_job: qsize 1 host-qsize=1
06.134501.311 queue_size: qsize=1
06.134501.311 queue_size: qsize=1
06.134501.311 [0] action=1 pending=0 host=0x0
06.134501.311 dequeue job https://localhost/index.html
06.134501.311 resolving localhost:32829...
06.134501.311 has 127.0.0.1:32829
06.134501.311 has 127.0.0.1:32829
06.134501.311 has 127.0.0.1:32829
06.134501.311 has ::1:32829
06.134501.311 has ::1:32829
06.134501.311 has ::1:32829
06.134501.311 trying 127.0.0.1:32829...
06.134501.311 Failed to set socket option TCP_FASTOPEN_CONNECT
06.134501.311 GnuTLS init
06.134501.321 GnuTLS system certificate store is empty
06.134501.321 Certificates loaded: 146
06.134501.321 GnuTLS init done
06.134501.321 TLS False Start requested
06.134501.321 SNI localhost
06.134501.321 ALPN offering h2
06.134501.321 ALPN offering http/1.1
06.134501.321 gnutls_handshake: (-110) The TLS connection was non-properly
terminated. (errno=1073741860)
06.134501.321 GnuTLS: Get ALPN: The requested data were not available.
06.134501.321 trying ::1:32829...
06.134501.321 Failed to set socket option TCP_FASTOPEN_CONNECT
06.134501.321 TLS False Start requested
06.134501.321 SNI localhost
06.134501.321 ALPN offering h2
06.134501.321 ALPN offering http/1.1
06.134501.321 GnuTLS: Get ALPN: The requested data were not available.
06.134501.321 Handshake timed out
06.134501.321 closing connection
06.134501.321 host_increase_failure: localhost failures=1
06.134501.321 host_increase_failure: qsize=0
06.134501.321 [0] action=3 pending=1 host=0x200000020450
06.134501.321 released job https://localhost/index.html
06.134501.321 [0] action=1 pending=0 host=0x0
06.134501.321 host localhost is blocked (qsize=1)
06.134501.321 main: wake up
06.134501.321 main: done
06.134501.321 blacklist https://localhost/index.html
----
Unsupported credential type 0.
----
Key Exchange: (null)
Protocol: TLS1.2
Certificate Type: X.509
Cipher: NULL
MAC: MAC-NULL
----
----
Unsupported credential type 0.
----
Key Exchange: (null)
Protocol: TLS1.3
Certificate Type: X.509
Cipher: NULL
MAC: MAC-NULL
----
Failed to connect: Timeout
Unexpected error code 0, expected 4 or 5
[--ca-certificate=/build/reproducible-path/wget2-2.1.0/tests/certs/x509-ca-cert.pem
--no-ocsp --https-enforce=hard --default-https-port=32829
--default-http-port=42742]
Removed test directory '.test_10543'
FAIL test-https-enforce-hard2 (exit status: 1)
```
As far as I understand the test setup, a failure due to timeout is expected
causing an error code 4 or 5. So here we see the first attempt to connect via
IPv4 being unsuccessful because of:
> gnutls_handshake: (-110) The TLS connection was non-properly terminated.
> (errno=1073741860)
The second attempt to connect via IPv6 is unsuccessful (as expected) with:
> Handshake timed out
However, the resulting error code is 0 instead of 4 or 5 (what actually is
expected). Honestly, I don't quite understand it.
Tim, do you know the reason for this?
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/-/issues/690
You're receiving this email because of your account on gitlab.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- wget2 | test-https-enforce-hard2 fails on GNU/Hurd (#690),
Thomas Uhle (@uhle) <=