wget-dev
[Top][All Lists]
Advanced

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

Re: wget2 | Simulation tests of interrupted downloads do not work for ht


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



Rohan Fletcher commented:


When test server is run in WGET_TEST_HTTP_ONLY mode this is the log
```
##### Testing '/usr/local/wget2/tests/../src/wget2_noinstall -d --no-config 
--no-local-db --max-threads=1 --prefer-family=ipv4 --no-proxy --timeout 3 
--tries=2 "http://localhost:43013/file2.bin"; 2>&1'
02.224806.462 name=config value=--no-local-db invert=1
02.224806.462 Expanded value = (null)
02.224806.462 name=local-db value=--max-threads=1 invert=1
02.224806.462 name=max-threads value=1 invert=0
02.224806.462 name=prefer-family value=ipv4 invert=0
02.224806.462 name=proxy value=--timeout invert=1
02.224806.462 name=timeout value=3 invert=0
02.224806.462 name=tries value=2 invert=0
02.224806.462 name=config value=--no-local-db invert=1
02.224806.462 Expanded value = (null)
02.224806.462 name=local-db value=--max-threads=1 invert=1
02.224806.462 name=max-threads value=1 invert=0
02.224806.462 name=prefer-family value=ipv4 invert=0
02.224806.462 name=proxy value=--timeout invert=1
02.224806.462 name=timeout value=3 invert=0
02.224806.462 name=tries value=2 invert=0
02.224806.462 Local URI encoding = 'ANSI_X3.4-1968'
02.224806.462 Input URI encoding = 'ANSI_X3.4-1968'
02.224806.462 set_exit_status(0)
02.224806.462 *url = 
02.224806.462 *3 http://localhost:43013/file2.bin
02.224806.463 transcoded 9 bytes from 'utf-8' to 'ANSI_X3.4-1968'
02.224806.463 local filename = 'file2.bin'
02.224806.463 host_add_job: job fname file2.bin
02.224806.463 host_add_job: 0x555e45fa0ab0 http://localhost:43013/file2.bin
02.224806.463 host_add_job: qsize 1 host-qsize=1
02.224806.463 queue_size: qsize=1
02.224806.463 queue_size: qsize=1
02.224806.463 [0] action=1 pending=0 host=0x0
02.224806.463 dequeue job http://localhost:43013/file2.bin
02.224806.463 resolving localhost:43013...
02.224806.463 has 127.0.0.1:43013
02.224806.463 has 127.0.0.1:43013
02.224806.463 trying 127.0.0.1:43013...
02.224806.463 established connection localhost
02.224806.463 # sent 226 bytes:
GET /file2.bin HTTP/1.1
Host: localhost
Accept-Encoding: gzip, deflate, bzip2, xz, lzma, br, zstd
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: wget2/1.99.2
Connection: keep-alive

02.224806.463 [0] action=2 pending=1 host=0x555e45fa0a30
02.224806.463 ### req 0x7fd25401bff0 pending requests = 1
02.224806.464 # got header 170 bytes:
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 1024
Server: Libmicrohttpd/00096304
Content-Type: application/octet-stream
Date: Sun, 02 Feb 2020 22:48:06 GMT

02.224806.464 method 2
Just got 0 of 1024 bytes
02.224806.464 set_exit_status(7)
02.224806.464 Removing file2.bin
02.224806.464 [0] action=1 pending=0 host=0x555e45fa0a30
02.224806.464 closing connection
02.224806.464 [0] action=1 pending=0 host=0x0
02.224806.464 main: wake up
02.224807.464 [0] action=1 pending=0 host=0x0
02.224807.464 dequeue job http://localhost:43013/file2.bin
02.224807.464 Found dns cache entry localhost:43013
02.224807.464 trying 127.0.0.1:43013...
02.224807.464 established connection localhost
02.224807.464 # sent 226 bytes:
GET /file2.bin HTTP/1.1
Host: localhost
Accept-Encoding: gzip, deflate, bzip2, xz, lzma, br, zstd
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: wget2/1.99.2
Connection: keep-alive

02.224807.464 [0] action=2 pending=1 host=0x555e45fa0a30
02.224807.464 ### req 0x7fd25401c400 pending requests = 1
02.224807.465 # got header 170 bytes:
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 1024
Server: Libmicrohttpd/00096304
Content-Type: application/octet-stream
Date: Sun, 02 Feb 2020 22:48:07 GMT

02.224807.465 method 2
Just got 0 of 1024 bytes
02.224807.465 set_exit_status(4)
02.224807.465 _host_remove_job: 0x555e45fa0ab0
02.224807.465 host_remove_job: qsize=0 host->qsize=0
02.224807.465 [0] action=1 pending=0 host=0x555e45fa0a30
02.224807.466 closing connection
02.224807.466 [0] action=1 pending=0 host=0x0
02.224807.466 main: wake up
02.224807.466 main: done
02.224807.466 blacklist http://localhost:43013/file2.bin
[0] Downloading 'http://localhost:43013/file2.bin' ...
Saving 'file2.bin'
Unexpected body length 0. Retrying...
[0] Downloading 'http://localhost:43013/file2.bin' ...
Saving 'file2.bin'
Unexpected body length 0. Job reached max tries.
```

Server is responding with status 200...

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




reply via email to

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