wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wget2 | Simulation tests of interrupted downloads do not work for http/2


From: Rohan Fletcher
Subject: wget2 | Simulation tests of interrupted downloads do not work for http/2 (#519)
Date: Sun, 02 Feb 2020 22:09:11 +0000


Rohan Fletcher created an issue: https://gitlab.com/gnuwget/wget2/issues/519



>From previous work issue #447 and merge !465

Simulation tests do not pass when http/2 is enabled

The test affected is the one that interrupts immediately (file2.bin).

Behaviour seems the same - `_callback_interruptable` is being called and is 
returning `MHD_CONTENT_READER_END_WITH_ERROR`.

Log output:
```
##### Testing '/usr/local/wget2/tests/../src/wget2_noinstall -d --no-config 
--no-local-db --max-threads=1 --prefer-family=ipv4 --no-proxy --timeout 3 
--https-enforce=hard 
--ca-certificate=/usr/local/wget2/tests/certs/x509-ca-cert.pem --no-ocsp 
--tries=2 "https://localhost:37347/file2.bin"; 2>&1'
02.215922.445 name=config value=--no-local-db invert=1
02.215922.445 Expanded value = (null)
02.215922.445 name=local-db value=--max-threads=1 invert=1
02.215922.445 name=max-threads value=1 invert=0
02.215922.445 name=prefer-family value=ipv4 invert=0
02.215922.445 name=proxy value=--timeout invert=1
02.215922.445 name=timeout value=3 invert=0
02.215922.445 name=https-enforce value=hard invert=0
02.215922.445 name=ca-certificate 
value=/usr/local/wget2/tests/certs/x509-ca-cert.pem invert=0
02.215922.445 name=ocsp value=--tries=2 invert=1
02.215922.445 name=tries value=2 invert=0
02.215922.445 name=config value=--no-local-db invert=1
02.215922.445 Expanded value = (null)
02.215922.445 name=local-db value=--max-threads=1 invert=1
02.215922.445 name=max-threads value=1 invert=0
02.215922.445 name=prefer-family value=ipv4 invert=0
02.215922.445 name=proxy value=--timeout invert=1
02.215922.445 name=timeout value=3 invert=0
02.215922.445 name=https-enforce value=hard invert=0
02.215922.445 name=ca-certificate 
value=/usr/local/wget2/tests/certs/x509-ca-cert.pem invert=0
02.215922.446 name=ocsp value=--tries=2 invert=1
02.215922.446 name=tries value=2 invert=0
02.215922.446 Local URI encoding = 'ANSI_X3.4-1968'
02.215922.446 Input URI encoding = 'ANSI_X3.4-1968'
02.215922.446 set_exit_status(0)
02.215922.446 *url = 
02.215922.446 *3 https://localhost:37347/file2.bin
02.215922.446 transcoded 9 bytes from 'utf-8' to 'ANSI_X3.4-1968'
02.215922.447 local filename = 'file2.bin'
02.215922.447 host_add_job: job fname file2.bin
02.215922.447 host_add_job: 0x5592ec652af0 https://localhost:37347/file2.bin
02.215922.447 host_add_job: qsize 1 host-qsize=1
02.215922.447 queue_size: qsize=1
02.215922.447 queue_size: qsize=1
02.215922.447 [0] action=1 pending=0 host=0x0
02.215922.448 dequeue job https://localhost:37347/file2.bin
02.215922.448 resolving localhost:37347...
02.215922.449 has 127.0.0.1:37347
02.215922.449 has 127.0.0.1:37347
02.215922.449 trying 127.0.0.1:37347...
02.215922.449 GnuTLS init
02.215922.471 Certificates loaded: 128
02.215922.471 GnuTLS init done
02.215922.471 TLS False Start requested
02.215922.471 ALPN offering h2
02.215922.471 ALPN offering http/1.1
WARNING: The certificate's (stapled) OCSP status has not been sent
02.215922.481 TLS False Start: off
02.215922.481 ALPN: Server accepted protocol 'h2'
02.215922.481 Handshake completed
02.215922.481 established connection localhost
02.215922.481 HTTP2 stream id 1
02.215922.481 [0] action=1 pending=1 host=0x5592ec652a70
02.215922.481 [0] action=2 pending=1 host=0x5592ec652a70
02.215922.481   ##  pending_requests = 1
02.215922.482 [FRAME 0] > SETTINGS
02.215922.482 [FRAME 0] > WINDOW_UPDATE
02.215922.482 [FRAME 1] > HEADERS
02.215922.482 [FRAME 1] > :method: GET
02.215922.482 [FRAME 1] > :path: /file2.bin
02.215922.482 [FRAME 1] > :scheme: https
02.215922.482 [FRAME 1] > :authority: localhost
02.215922.482 [FRAME 1] > accept-encoding: gzip, deflate, bzip2, xz, lzma, br, 
zstd
02.215922.482 [FRAME 1] > accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
02.215922.482 [FRAME 1] > user-agent: wget2/1.99.2
02.215922.482 [FRAME 0] < SETTINGS
02.215922.482 [FRAME 0] > SETTINGS
02.215922.482 [FRAME 0] < SETTINGS
02.215922.482 :status: 200
02.215922.482 date: Sun, 02 Feb 2020 21:59:22 GMT
02.215922.482 content-length: 1024
02.215922.482 server: Libmicrohttpd/00096304
02.215922.482 content-type: application/octet-stream
02.215922.482 [FRAME 1] < HEADERS
02.215922.482 [FRAME 1] < RST_STREAM
02.215922.482 closing stream 1
02.215922.482   ##  response status 200
02.215922.482 keep_alive=1
02.215922.482 _host_remove_job: 0x5592ec652af0
02.215922.482 host_remove_job: qsize=0 host->qsize=0
02.215922.482 [0] action=1 pending=0 host=0x5592ec652a70
02.215922.482 closing connection
02.215922.482 [0] action=1 pending=0 host=0x0
02.215922.482 main: wake up
02.215922.482 main: done
02.215922.482 blacklist https://localhost:37347/file2.bin
----
Certificate info [0]:
  Valid since: Sun Aug 25 13:41:36 2019
  Expires: Fri Dec 31 23:59:59 9999
  Fingerprint: 24f45a6fb7327057da91e374d8d0c492
  Serial number: 24f45a6fb7327057da91e374d8d0c492
  Public key: RSA, High (3072 bits)
  Version: #3
  DN: CN=Wget,OU=Wget,O=GNU,ST=Sunshine,C=Freeland
  Issuer's DN: CN=Wget,OU=Wget,O=GNU,ST=Sunshine,C=Freeland
  Issuer's OID: 2.5.4.3
  Issuer's UID: 2.5.4.3
----
Ephemeral ECDH using curve SECP256R1
Key Exchange: ECDHE-RSA
Protocol: TLS1.3
Certificate Type: X.509
Cipher: AES-256-GCM
MAC: AEAD
----

[0] Downloading 'https://localhost:33167/file2.bin' ...
Saving 'file2.bin'
HTTP response 200  [https://localhost:33167/file2.bin]
Unexpected error code 0, expected 4 [--tries=2]
Removed test directory '.test_23223'
```

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/issues/519
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]