Setting --no-config (noconfig) to 1 Setting --tries (tries) to 2 DEBUG output created by Wget 1.19.1 on linux-gnueabihf. Reading HSTS entries from /home/garstow/.wget-hsts Converted file name 'File1' (UTF-8) -> 'File1' (ANSI_X3.4-1968) --2017-02-13 16:16:35-- http://127.0.0.1:37475/File1 Connecting to 127.0.0.1:37475... connected. Created socket 3. Releasing 0x7f682b70 (new refcount 0). Deleting unused 0x7f682b70. ---request begin--- GET /File1 HTTP/1.1 User-Agent: Wget/1.19.1 (linux-gnueabihf) Accept: */* Accept-Encoding: identity Host: 127.0.0.1:37475 Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 504 Gateway Timeout Server: BaseHTTP/0.6 Python/3.6.0 Date: Mon, 13 Feb 2017 16:16:35 GMT ---response end--- 504 Gateway Timeout Registered socket 3 for persistent reuse. Retrying. --2017-02-13 16:16:36-- (try: 2) http://127.0.0.1:37475/File1 Disabling further reuse of socket 3. Closed fd 3 Connecting to 127.0.0.1:37475... connected. Created socket 3. Releasing 0x7f682b90 (new refcount 0). Deleting unused 0x7f682b90. ---request begin--- GET /File1 HTTP/1.1 User-Agent: Wget/1.19.1 (linux-gnueabihf) Accept: */* Accept-Encoding: identity Host: 127.0.0.1:37475 Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 504 Gateway Timeout Server: BaseHTTP/0.6 Python/3.6.0 Date: Mon, 13 Feb 2017 16:16:36 GMT ---response end--- 504 Gateway Timeout Registered socket 3 for persistent reuse. Giving up. Converted file name 'File2' (UTF-8) -> 'File2' (ANSI_X3.4-1968) --2017-02-13 16:16:36-- http://127.0.0.1:37475/File2 Reusing existing connection to 127.0.0.1:37475. Reusing fd 3. ---request begin--- GET /File2 HTTP/1.1 User-Agent: Wget/1.19.1 (linux-gnueabihf) Accept: */* Accept-Encoding: identity Host: 127.0.0.1:37475 Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- ---response end--- 200 No headers, assuming HTTP/0.9 Length: unspecified Saving to: 'File2' 0K 5.59K=0.04s Disabling further reuse of socket 3. Closed fd 3 2017-02-13 16:31:36 (5.59 KB/s) - Read error at byte 241 (Connection timed out).Retrying. --2017-02-13 16:31:37-- (try: 2) http://127.0.0.1:37475/File2 Connecting to 127.0.0.1:37475... connected. Created socket 3. Releasing 0x7f683110 (new refcount 0). Deleting unused 0x7f683110. ---request begin--- GET /File2 HTTP/1.1 Range: bytes=241- User-Agent: Wget/1.19.1 (linux-gnueabihf) Accept: */* Accept-Encoding: identity Host: 127.0.0.1:37475 Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 416 Requested Range Not Satisfiable Server: BaseHTTP/0.6 Python/3.6.0 Date: Mon, 13 Feb 2017 16:31:37 GMT ---response end--- 416 Requested Range Not Satisfiable Registered socket 3 for persistent reuse. The file is already fully retrieved; nothing to do. 127.0.0.1 - - [13/Feb/2017 16:16:35] "GET /File1 HTTP/1.1" 504 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 33770) Traceback (most recent call last): File "/gar/lib/python3.6/socketserver.py", line 317, in _handle_request_noblock self.process_request(request, client_address) File "/gar/lib/python3.6/socketserver.py", line 348, in process_request self.finish_request(request, client_address) File "/gar/lib/python3.6/socketserver.py", line 361, in finish_request self.RequestHandlerClass(request, client_address, self) File "/gar/lib/python3.6/socketserver.py", line 696, in __init__ self.handle() File "/gar/lib/python3.6/http/server.py", line 420, in handle self.handle_one_request() File "/gar/lib/python3.6/http/server.py", line 386, in handle_one_request self.raw_requestline = self.rfile.readline(65537) File "/gar/lib/python3.6/socket.py", line 586, in readinto return self._sock.recv_into(b) ConnectionResetError: [Errno 104] Connection reset by peer ---------------------------------------- 127.0.0.1 - - [13/Feb/2017 16:16:36] "GET /File1 HTTP/1.1" 504 - 127.0.0.1 - - [13/Feb/2017 16:16:36] "GET /File2 HTTP/1.1" 200 - 127.0.0.1 - - [13/Feb/2017 16:31:37] "GET /File2 HTTP/1.1" 416 - --- Actual +++ Expected @@ -1,209 +1,3 @@ -A -l -l - -h -a -p -p -y - -f -a -m -i -l -i -e -s - -a -r -e - -a -l -i -k -e -; - -E -a -c -h - -u -n -h -a -p -p -y - -f -a -m -i -l -y - -i -s - -u -n -h -a -p -p -y - -i -n - -i -t -s - -o -w -n - -w -a -y -H -T -T -P -/ -1 -. -1 - -2 -0 -0 - -O -K - -S -e -r -v -e -r -: - -B -a -s -e -H -T -T -P -/ -0 -. -6 - -P -y -t -h -o -n -/ -3 -. -6 -. -0 - -D -a -t -e -: - -M -o -n -, - -1 -3 - -F -e -b - -2 -0 -1 -7 - -1 -6 -: -1 -6 -: -3 -6 - -G -M -T - -c -o -n -t -e -n -t -- -t -y -p -e -: - -t -e -x -t -/ -p -l -a -i -n - -c -o -n -t -e -n -t -- -l -e -n -g -t -h -: - -2 -9 - - A n y Running Test Test-504.py /src/net/wget/work/wget-1.19.1/src/wget --debug --no-config --tries=2 http://127.0.0.1:37475/File1 http://127.0.0.1:37475/File2 ['/src/net/wget/work/wget-1.19.1/src/wget', '--debug', '--no-config', '--tries=2', 'http://127.0.0.1:37475/File1', 'http://127.0.0.1:37475/File2'] Custom Response code sent. Custom Response code sent. Error: Contents of File2 do not match. Traceback (most recent call last): File "./Test-504.py", line 67, in post_hook=post_test File "/src/net/wget/work/wget-1.19.1/testenv/test/http_test.py", line 41, in begin self.do_test() File "/src/net/wget/work/wget-1.19.1/testenv/test/base_test.py", line 187, in do_test self.post_hook_call() File "/src/net/wget/work/wget-1.19.1/testenv/test/base_test.py", line 206, in post_hook_call self.hook_call(self.post_configs, 'Post Test Function') File "/src/net/wget/work/wget-1.19.1/testenv/test/base_test.py", line 196, in hook_call conf.find_conf(conf_name)(conf_arg)(self) File "/src/net/wget/work/wget-1.19.1/testenv/conf/expected_files.py", line 47, in __call__ raise TestFailed('Contents of %s do not match' % file.name) exc.test_failed.TestFailed: Contents of File2 do not match FAIL Test-504.py (exit status: 1)