Hi wget maintainers,

I've just built wget-1.19.1 on several GNU/Linux machines, and found
that Test-504.py fails sometimes on a slow-ish ARMv7 system with Python
3.6.0. Attached are tcpdump traces of the test succeeding and failing on
the same machine, and the log from the failure.

In this test, wget makes three requests against the test HTTP server,
with the first two getting 504 responses and the third succeeding.
Looking at the trace, the 504 responses don't look correct: the server
is operating in pipelined mode, but the 504 response contains no
Content-Length header, so there's no way for wget to know where the body
of the response ends (other than the connection being closed; RFC 2616
section 4.4).

The test succeeds when wget manages to read the headers and body of the
second response, closes the connection in disgust, and opens a new
connection for the final request (which is probably not what the test
author intended). It fails when wget sends its third request before it's
seen the body of the second response, and then tries to parse the body
as the response to the third message; the test output then includes:

  200 No headers, assuming HTTP/0.9

and wget waits until it times out.

I think the right fix here is to have the test server send a proper
Content-Length header in its 504 response?

Thanks,

-- 
Adam Sampson <a...@offog.org>                         <http://offog.org/>
13:52:10.061779 IP 127.0.0.1.50630 > 127.0.0.1.39501: Flags [S], seq 
2424480562, win 43690, options [mss 65495,sackOK,TS val 87000674 ecr 
0,nop,wscale 7], length 0
        0x0000:  4500 003c 2550 4000 4006 176a 7f00 0001  E..<%P@.@..j....
        0x0010:  7f00 0001 c5c6 9a4d 9082 a332 0000 0000  .......M...2....
        0x0020:  a002 aaaa fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  052f 8662 0000 0000 0103 0307            ./.b........
13:52:10.061934 IP 127.0.0.1.39501 > 127.0.0.1.50630: Flags [S.], seq 
1266177975, ack 2424480563, win 43690, options [mss 65495,sackOK,TS val 
87000674 ecr 87000674,nop,wscale 7], length 0
        0x0000:  4500 003c 0000 4000 4006 3cba 7f00 0001  E..<..@.@.<.....
        0x0010:  7f00 0001 9a4d c5c6 4b78 57b7 9082 a333  .....M..KxW....3
        0x0020:  a012 aaaa fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  052f 8662 052f 8662 0103 0307            ./.b./.b....
13:52:10.062085 IP 127.0.0.1.50630 > 127.0.0.1.39501: Flags [.], ack 1, win 
342, options [nop,nop,TS val 87000674 ecr 87000674], length 0
        0x0000:  4500 0034 2551 4000 4006 1771 7f00 0001  E..4%Q@.@..q....
        0x0010:  7f00 0001 c5c6 9a4d 9082 a333 4b78 57b8  .......M...3KxW.
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 8662  ...V.(......./.b
        0x0030:  052f 8662                                ./.b
13:52:10.069205 IP 127.0.0.1.50630 > 127.0.0.1.39501: Flags [P.], seq 1:154, 
ack 1, win 342, options [nop,nop,TS val 87000676 ecr 87000674], length 153
        0x0000:  4500 00cd 2552 4000 4006 16d7 7f00 0001  E...%R@.@.......
        0x0010:  7f00 0001 c5c6 9a4d 9082 a333 4b78 57b8  .......M...3KxW.
        0x0020:  8018 0156 fec1 0000 0101 080a 052f 8664  ...V........./.d
        0x0030:  052f 8662 4745 5420 2f46 696c 6531 2048  ./.bGET./File1.H
        0x0040:  5454 502f 312e 310d 0a55 7365 722d 4167  TTP/1.1..User-Ag
        0x0050:  656e 743a 2057 6765 742f 312e 3139 2e31  ent:.Wget/1.19.1
        0x0060:  2028 6c69 6e75 782d 676e 7565 6162 6968  .(linux-gnueabih
        0x0070:  6629 0d0a 4163 6365 7074 3a20 2a2f 2a0d  f)..Accept:.*/*.
        0x0080:  0a41 6363 6570 742d 456e 636f 6469 6e67  .Accept-Encoding
        0x0090:  3a20 6964 656e 7469 7479 0d0a 486f 7374  :.identity..Host
        0x00a0:  3a20 3132 372e 302e 302e 313a 3339 3530  :.127.0.0.1:3950
        0x00b0:  310d 0a43 6f6e 6e65 6374 696f 6e3a 204b  1..Connection:.K
        0x00c0:  6565 702d 416c 6976 650d 0a0d 0a         eep-Alive....
13:52:10.069423 IP 127.0.0.1.39501 > 127.0.0.1.50630: Flags [.], ack 154, win 
350, options [nop,nop,TS val 87000676 ecr 87000676], length 0
        0x0000:  4500 0034 d1da 4000 4006 6ae7 7f00 0001  E..4..@.@.j.....
        0x0010:  7f00 0001 9a4d c5c6 4b78 57b8 9082 a3cc  .....M..KxW.....
        0x0020:  8010 015e fe28 0000 0101 080a 052f 8664  ...^.(......./.d
        0x0030:  052f 8664                                ./.d
13:52:10.078331 IP 127.0.0.1.39501 > 127.0.0.1.50630: Flags [P.], seq 1:105, 
ack 154, win 350, options [nop,nop,TS val 87000677 ecr 87000676], length 104
        0x0000:  4500 009c d1db 4000 4006 6a7e 7f00 0001  E.....@.@.j~....
        0x0010:  7f00 0001 9a4d c5c6 4b78 57b8 9082 a3cc  .....M..KxW.....
        0x0020:  8018 015e fe90 0000 0101 080a 052f 8665  ...^........./.e
        0x0030:  052f 8664 4854 5450 2f31 2e31 2035 3034  ./.dHTTP/1.1.504
        0x0040:  2047 6174 6577 6179 2054 696d 656f 7574  .Gateway.Timeout
        0x0050:  0d0a 5365 7276 6572 3a20 4261 7365 4854  ..Server:.BaseHT
        0x0060:  5450 2f30 2e36 2050 7974 686f 6e2f 332e  TP/0.6.Python/3.
        0x0070:  362e 300d 0a44 6174 653a 2054 7565 2c20  6.0..Date:.Tue,.
        0x0080:  3134 2046 6562 2032 3031 3720 3133 3a35  14.Feb.2017.13:5
        0x0090:  323a 3130 2047 4d54 0d0a 0d0a            2:10.GMT....
13:52:10.078462 IP 127.0.0.1.50630 > 127.0.0.1.39501: Flags [.], ack 105, win 
342, options [nop,nop,TS val 87000677 ecr 87000677], length 0
        0x0000:  4500 0034 2553 4000 4006 176f 7f00 0001  E..4%S@.@..o....
        0x0010:  7f00 0001 c5c6 9a4d 9082 a3cc 4b78 5820  .......M....KxX.
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 8665  ...V.(......./.e
        0x0030:  052f 8665                                ./.e
13:52:10.089273 IP 127.0.0.1.39501 > 127.0.0.1.50630: Flags [P.], seq 105:180, 
ack 154, win 350, options [nop,nop,TS val 87000680 ecr 87000677], length 75
        0x0000:  4500 007f d1dc 4000 4006 6a9a 7f00 0001  E.....@.@.j.....
        0x0010:  7f00 0001 9a4d c5c6 4b78 5820 9082 a3cc  .....M..KxX.....
        0x0020:  8018 015e fe73 0000 0101 080a 052f 8668  ...^.s......./.h
        0x0030:  052f 8665 416c 6c20 6861 7070 7920 6661  ./.eAll.happy.fa
        0x0040:  6d69 6c69 6573 2061 7265 2061 6c69 6b65  milies.are.alike
        0x0050:  3b0a 4561 6368 2075 6e68 6170 7079 2066  ;.Each.unhappy.f
        0x0060:  616d 696c 7920 6973 2075 6e68 6170 7079  amily.is.unhappy
        0x0070:  2069 6e20 6974 7320 6f77 6e20 7761 79    .in.its.own.way
13:52:10.089394 IP 127.0.0.1.50630 > 127.0.0.1.39501: Flags [.], ack 180, win 
342, options [nop,nop,TS val 87000680 ecr 87000680], length 0
        0x0000:  4500 0034 2554 4000 4006 176e 7f00 0001  E..4%T@.@..n....
        0x0010:  7f00 0001 c5c6 9a4d 9082 a3cc 4b78 586b  .......M....KxXk
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 8668  ...V.(......./.h
        0x0030:  052f 8668                                ./.h
13:52:11.083135 IP 127.0.0.1.50630 > 127.0.0.1.39501: Flags [R.], seq 154, ack 
180, win 342, options [nop,nop,TS val 87000878 ecr 87000680], length 0
        0x0000:  4500 0034 2555 4000 4006 176d 7f00 0001  E..4%U@.@..m....
        0x0010:  7f00 0001 c5c6 9a4d 9082 a3cc 4b78 586b  .......M....KxXk
        0x0020:  8014 0156 fe28 0000 0101 080a 052f 872e  ...V.(......./..
        0x0030:  052f 8668                                ./.h
13:52:11.083855 IP 127.0.0.1.50632 > 127.0.0.1.39501: Flags [S], seq 
1833655951, win 43690, options [mss 65495,sackOK,TS val 87000878 ecr 
0,nop,wscale 7], length 0
        0x0000:  4500 003c d9a1 4000 4006 6318 7f00 0001  E..<..@.@.c.....
        0x0010:  7f00 0001 c5c8 9a4d 6d4b 5e8f 0000 0000  .......MmK^.....
        0x0020:  a002 aaaa fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  052f 872e 0000 0000 0103 0307            ./..........
13:52:11.084010 IP 127.0.0.1.39501 > 127.0.0.1.50632: Flags [S.], seq 
1583223391, ack 1833655952, win 43690, options [mss 65495,sackOK,TS val 
87000879 ecr 87000878,nop,wscale 7], length 0
        0x0000:  4500 003c 0000 4000 4006 3cba 7f00 0001  E..<..@.@.<.....
        0x0010:  7f00 0001 9a4d c5c8 5e5e 125f 6d4b 5e90  .....M..^^._mK^.
        0x0020:  a012 aaaa fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  052f 872f 052f 872e 0103 0307            ./././......
13:52:11.084151 IP 127.0.0.1.50632 > 127.0.0.1.39501: Flags [.], ack 1, win 
342, options [nop,nop,TS val 87000879 ecr 87000879], length 0
        0x0000:  4500 0034 d9a2 4000 4006 631f 7f00 0001  E..4..@.@.c.....
        0x0010:  7f00 0001 c5c8 9a4d 6d4b 5e90 5e5e 1260  .......MmK^.^^.`
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 872f  ...V.(......././
        0x0030:  052f 872f                                ././
13:52:11.084659 IP 127.0.0.1.50632 > 127.0.0.1.39501: Flags [P.], seq 1:154, 
ack 1, win 342, options [nop,nop,TS val 87000879 ecr 87000879], length 153
        0x0000:  4500 00cd d9a3 4000 4006 6285 7f00 0001  E.....@.@.b.....
        0x0010:  7f00 0001 c5c8 9a4d 6d4b 5e90 5e5e 1260  .......MmK^.^^.`
        0x0020:  8018 0156 fec1 0000 0101 080a 052f 872f  ...V........././
        0x0030:  052f 872f 4745 5420 2f46 696c 6531 2048  ././GET./File1.H
        0x0040:  5454 502f 312e 310d 0a55 7365 722d 4167  TTP/1.1..User-Ag
        0x0050:  656e 743a 2057 6765 742f 312e 3139 2e31  ent:.Wget/1.19.1
        0x0060:  2028 6c69 6e75 782d 676e 7565 6162 6968  .(linux-gnueabih
        0x0070:  6629 0d0a 4163 6365 7074 3a20 2a2f 2a0d  f)..Accept:.*/*.
        0x0080:  0a41 6363 6570 742d 456e 636f 6469 6e67  .Accept-Encoding
        0x0090:  3a20 6964 656e 7469 7479 0d0a 486f 7374  :.identity..Host
        0x00a0:  3a20 3132 372e 302e 302e 313a 3339 3530  :.127.0.0.1:3950
        0x00b0:  310d 0a43 6f6e 6e65 6374 696f 6e3a 204b  1..Connection:.K
        0x00c0:  6565 702d 416c 6976 650d 0a0d 0a         eep-Alive....
13:52:11.084765 IP 127.0.0.1.39501 > 127.0.0.1.50632: Flags [.], ack 154, win 
350, options [nop,nop,TS val 87000879 ecr 87000879], length 0
        0x0000:  4500 0034 954f 4000 4006 a772 7f00 0001  E..4.O@.@..r....
        0x0010:  7f00 0001 9a4d c5c8 5e5e 1260 6d4b 5f29  .....M..^^.`mK_)
        0x0020:  8010 015e fe28 0000 0101 080a 052f 872f  ...^.(......././
        0x0030:  052f 872f                                ././
13:52:11.129051 IP 127.0.0.1.39501 > 127.0.0.1.50632: Flags [P.], seq 1:105, 
ack 154, win 350, options [nop,nop,TS val 87000888 ecr 87000879], length 104
        0x0000:  4500 009c 9550 4000 4006 a709 7f00 0001  E....P@.@.......
        0x0010:  7f00 0001 9a4d c5c8 5e5e 1260 6d4b 5f29  .....M..^^.`mK_)
        0x0020:  8018 015e fe90 0000 0101 080a 052f 8738  ...^........./.8
        0x0030:  052f 872f 4854 5450 2f31 2e31 2035 3034  ././HTTP/1.1.504
        0x0040:  2047 6174 6577 6179 2054 696d 656f 7574  .Gateway.Timeout
        0x0050:  0d0a 5365 7276 6572 3a20 4261 7365 4854  ..Server:.BaseHT
        0x0060:  5450 2f30 2e36 2050 7974 686f 6e2f 332e  TP/0.6.Python/3.
        0x0070:  362e 300d 0a44 6174 653a 2054 7565 2c20  6.0..Date:.Tue,.
        0x0080:  3134 2046 6562 2032 3031 3720 3133 3a35  14.Feb.2017.13:5
        0x0090:  323a 3131 2047 4d54 0d0a 0d0a            2:11.GMT....
13:52:11.129171 IP 127.0.0.1.50632 > 127.0.0.1.39501: Flags [.], ack 105, win 
342, options [nop,nop,TS val 87000888 ecr 87000888], length 0
        0x0000:  4500 0034 d9a4 4000 4006 631d 7f00 0001  E..4..@.@.c.....
        0x0010:  7f00 0001 c5c8 9a4d 6d4b 5f29 5e5e 12c8  .......MmK_)^^..
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 8738  ...V.(......./.8
        0x0030:  052f 8738                                ./.8
13:52:11.129954 IP 127.0.0.1.39501 > 127.0.0.1.50632: Flags [P.], seq 105:180, 
ack 154, win 350, options [nop,nop,TS val 87000888 ecr 87000888], length 75
        0x0000:  4500 007f 9551 4000 4006 a725 7f00 0001  E....Q@.@..%....
        0x0010:  7f00 0001 9a4d c5c8 5e5e 12c8 6d4b 5f29  .....M..^^..mK_)
        0x0020:  8018 015e fe73 0000 0101 080a 052f 8738  ...^.s......./.8
        0x0030:  052f 8738 416c 6c20 6861 7070 7920 6661  ./.8All.happy.fa
        0x0040:  6d69 6c69 6573 2061 7265 2061 6c69 6b65  milies.are.alike
        0x0050:  3b0a 4561 6368 2075 6e68 6170 7079 2066  ;.Each.unhappy.f
        0x0060:  616d 696c 7920 6973 2075 6e68 6170 7079  amily.is.unhappy
        0x0070:  2069 6e20 6974 7320 6f77 6e20 7761 79    .in.its.own.way
13:52:11.130059 IP 127.0.0.1.50632 > 127.0.0.1.39501: Flags [.], ack 180, win 
342, options [nop,nop,TS val 87000888 ecr 87000888], length 0
        0x0000:  4500 0034 d9a5 4000 4006 631c 7f00 0001  E..4..@.@.c.....
        0x0010:  7f00 0001 c5c8 9a4d 6d4b 5f29 5e5e 1313  .......MmK_)^^..
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 8738  ...V.(......./.8
        0x0030:  052f 8738                                ./.8
13:52:11.130367 IP 127.0.0.1.50632 > 127.0.0.1.39501: Flags [R.], seq 154, ack 
180, win 342, options [nop,nop,TS val 87000888 ecr 87000888], length 0
        0x0000:  4500 0034 d9a6 4000 4006 631b 7f00 0001  E..4..@.@.c.....
        0x0010:  7f00 0001 c5c8 9a4d 6d4b 5f29 5e5e 1313  .......MmK_)^^..
        0x0020:  8014 0156 fe28 0000 0101 080a 052f 8738  ...V.(......./.8
        0x0030:  052f 8738                                ./.8
13:52:11.130869 IP 127.0.0.1.50634 > 127.0.0.1.39501: Flags [S], seq 
1217333634, win 43690, options [mss 65495,sackOK,TS val 87000888 ecr 
0,nop,wscale 7], length 0
        0x0000:  4500 003c 8eba 4000 4006 adff 7f00 0001  E..<..@.@.......
        0x0010:  7f00 0001 c5ca 9a4d 488f 0982 0000 0000  .......MH.......
        0x0020:  a002 aaaa fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  052f 8738 0000 0000 0103 0307            ./.8........
13:52:11.131006 IP 127.0.0.1.39501 > 127.0.0.1.50634: Flags [S.], seq 
703831205, ack 1217333635, win 43690, options [mss 65495,sackOK,TS val 87000888 
ecr 87000888,nop,wscale 7], length 0
        0x0000:  4500 003c 0000 4000 4006 3cba 7f00 0001  E..<..@.@.<.....
        0x0010:  7f00 0001 9a4d c5ca 29f3 9ca5 488f 0983  .....M..)...H...
        0x0020:  a012 aaaa fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  052f 8738 052f 8738 0103 0307            ./.8./.8....
13:52:11.131147 IP 127.0.0.1.50634 > 127.0.0.1.39501: Flags [.], ack 1, win 
342, options [nop,nop,TS val 87000888 ecr 87000888], length 0
        0x0000:  4500 0034 8ebb 4000 4006 ae06 7f00 0001  E..4..@.@.......
        0x0010:  7f00 0001 c5ca 9a4d 488f 0983 29f3 9ca6  .......MH...)...
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 8738  ...V.(......./.8
        0x0030:  052f 8738                                ./.8
13:52:11.131612 IP 127.0.0.1.50634 > 127.0.0.1.39501: Flags [P.], seq 1:154, 
ack 1, win 342, options [nop,nop,TS val 87000888 ecr 87000888], length 153
        0x0000:  4500 00cd 8ebc 4000 4006 ad6c 7f00 0001  E.....@.@..l....
        0x0010:  7f00 0001 c5ca 9a4d 488f 0983 29f3 9ca6  .......MH...)...
        0x0020:  8018 0156 fec1 0000 0101 080a 052f 8738  ...V........./.8
        0x0030:  052f 8738 4745 5420 2f46 696c 6532 2048  ./.8GET./File2.H
        0x0040:  5454 502f 312e 310d 0a55 7365 722d 4167  TTP/1.1..User-Ag
        0x0050:  656e 743a 2057 6765 742f 312e 3139 2e31  ent:.Wget/1.19.1
        0x0060:  2028 6c69 6e75 782d 676e 7565 6162 6968  .(linux-gnueabih
        0x0070:  6629 0d0a 4163 6365 7074 3a20 2a2f 2a0d  f)..Accept:.*/*.
        0x0080:  0a41 6363 6570 742d 456e 636f 6469 6e67  .Accept-Encoding
        0x0090:  3a20 6964 656e 7469 7479 0d0a 486f 7374  :.identity..Host
        0x00a0:  3a20 3132 372e 302e 302e 313a 3339 3530  :.127.0.0.1:3950
        0x00b0:  310d 0a43 6f6e 6e65 6374 696f 6e3a 204b  1..Connection:.K
        0x00c0:  6565 702d 416c 6976 650d 0a0d 0a         eep-Alive....
13:52:11.131710 IP 127.0.0.1.39501 > 127.0.0.1.50634: Flags [.], ack 154, win 
350, options [nop,nop,TS val 87000888 ecr 87000888], length 0
        0x0000:  4500 0034 1b9e 4000 4006 2124 7f00 0001  E..4..@.@.!$....
        0x0010:  7f00 0001 9a4d c5ca 29f3 9ca6 488f 0a1c  .....M..)...H...
        0x0020:  8010 015e fe28 0000 0101 080a 052f 8738  ...^.(......./.8
        0x0030:  052f 8738                                ./.8
13:52:11.160541 IP 127.0.0.1.39501 > 127.0.0.1.50634: Flags [P.], seq 1:138, 
ack 154, win 350, options [nop,nop,TS val 87000894 ecr 87000888], length 137
        0x0000:  4500 00bd 1b9f 4000 4006 209a 7f00 0001  E.....@.@.......
        0x0010:  7f00 0001 9a4d c5ca 29f3 9ca6 488f 0a1c  .....M..)...H...
        0x0020:  8018 015e feb1 0000 0101 080a 052f 873e  ...^........./.>
        0x0030:  052f 8738 4854 5450 2f31 2e31 2032 3030  ./.8HTTP/1.1.200
        0x0040:  204f 4b0d 0a53 6572 7665 723a 2042 6173  .OK..Server:.Bas
        0x0050:  6548 5454 502f 302e 3620 5079 7468 6f6e  eHTTP/0.6.Python
        0x0060:  2f33 2e36 2e30 0d0a 4461 7465 3a20 5475  /3.6.0..Date:.Tu
        0x0070:  652c 2031 3420 4665 6220 3230 3137 2031  e,.14.Feb.2017.1
        0x0080:  333a 3532 3a31 3120 474d 540d 0a63 6f6e  3:52:11.GMT..con
        0x0090:  7465 6e74 2d74 7970 653a 2074 6578 742f  tent-type:.text/
        0x00a0:  706c 6169 6e0d 0a63 6f6e 7465 6e74 2d6c  plain..content-l
        0x00b0:  656e 6774 683a 2032 390d 0a0d 0a         ength:.29....
13:52:11.160666 IP 127.0.0.1.50634 > 127.0.0.1.39501: Flags [.], ack 138, win 
350, options [nop,nop,TS val 87000894 ecr 87000894], length 0
        0x0000:  4500 0034 8ebd 4000 4006 ae04 7f00 0001  E..4..@.@.......
        0x0010:  7f00 0001 c5ca 9a4d 488f 0a1c 29f3 9d2f  .......MH...)../
        0x0020:  8010 015e fe28 0000 0101 080a 052f 873e  ...^.(......./.>
        0x0030:  052f 873e                                ./.>
13:52:11.162535 IP 127.0.0.1.39501 > 127.0.0.1.50634: Flags [P.], seq 138:167, 
ack 154, win 350, options [nop,nop,TS val 87000894 ecr 87000894], length 29
        0x0000:  4500 0051 1ba0 4000 4006 2105 7f00 0001  E..Q..@.@.!.....
        0x0010:  7f00 0001 9a4d c5ca 29f3 9d2f 488f 0a1c  .....M..)../H...
        0x0020:  8018 015e fe45 0000 0101 080a 052f 873e  ...^.E......./.>
        0x0030:  052f 873e 416e 796f 6e65 2066 6f72 2063  ./.>Anyone.for.c
        0x0040:  686f 636f 6368 6970 2063 6f6f 6b69 6573  hocochip.cookies
        0x0050:  3f                                       ?
13:52:11.162654 IP 127.0.0.1.50634 > 127.0.0.1.39501: Flags [.], ack 167, win 
350, options [nop,nop,TS val 87000894 ecr 87000894], length 0
        0x0000:  4500 0034 8ebe 4000 4006 ae03 7f00 0001  E..4..@.@.......
        0x0010:  7f00 0001 c5ca 9a4d 488f 0a1c 29f3 9d4c  .......MH...)..L
        0x0020:  8010 015e fe28 0000 0101 080a 052f 873e  ...^.(......./.>
        0x0030:  052f 873e                                ./.>
13:52:11.166081 IP 127.0.0.1.50634 > 127.0.0.1.39501: Flags [F.], seq 154, ack 
167, win 350, options [nop,nop,TS val 87000895 ecr 87000894], length 0
        0x0000:  4500 0034 8ebf 4000 4006 ae02 7f00 0001  E..4..@.@.......
        0x0010:  7f00 0001 c5ca 9a4d 488f 0a1c 29f3 9d4c  .......MH...)..L
        0x0020:  8011 015e fe28 0000 0101 080a 052f 873f  ...^.(......./.?
        0x0030:  052f 873e                                ./.>
13:52:11.168217 IP 127.0.0.1.39501 > 127.0.0.1.50634: Flags [F.], seq 167, ack 
155, win 350, options [nop,nop,TS val 87000895 ecr 87000895], length 0
        0x0000:  4500 0034 1ba1 4000 4006 2121 7f00 0001  E..4..@.@.!!....
        0x0010:  7f00 0001 9a4d c5ca 29f3 9d4c 488f 0a1d  .....M..)..LH...
        0x0020:  8011 015e fe28 0000 0101 080a 052f 873f  ...^.(......./.?
        0x0030:  052f 873f                                ./.?
13:52:11.168354 IP 127.0.0.1.50634 > 127.0.0.1.39501: Flags [.], ack 168, win 
350, options [nop,nop,TS val 87000895 ecr 87000895], length 0
        0x0000:  4500 0034 8ec0 4000 4006 ae01 7f00 0001  E..4..@.@.......
        0x0010:  7f00 0001 c5ca 9a4d 488f 0a1d 29f3 9d4d  .......MH...)..M
        0x0020:  8010 015e fe28 0000 0101 080a 052f 873f  ...^.(......./.?
        0x0030:  052f 873f                                ./.?
13:52:21.943335 IP 127.0.0.1.51406 > 127.0.0.1.37247: Flags [S], seq 
1675719034, win 43690, options [mss 65495,sackOK,TS val 87003050 ecr 
0,nop,wscale 7], length 0
        0x0000:  4500 003c fed0 4000 4006 3de9 7f00 0001  E..<..@.@.=.....
        0x0010:  7f00 0001 c8ce 917f 63e1 717a 0000 0000  ........c.qz....
        0x0020:  a002 aaaa fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  052f 8faa 0000 0000 0103 0307            ./..........
13:52:21.943499 IP 127.0.0.1.37247 > 127.0.0.1.51406: Flags [S.], seq 48815678, 
ack 1675719035, win 43690, options [mss 65495,sackOK,TS val 87003050 ecr 
87003050,nop,wscale 7], length 0
        0x0000:  4500 003c 0000 4000 4006 3cba 7f00 0001  E..<..@.@.<.....
        0x0010:  7f00 0001 917f c8ce 02e8 de3e 63e1 717b  ...........>c.q{
        0x0020:  a012 aaaa fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  052f 8faa 052f 8faa 0103 0307            ./.../......
13:52:21.943642 IP 127.0.0.1.51406 > 127.0.0.1.37247: Flags [.], ack 1, win 
342, options [nop,nop,TS val 87003050 ecr 87003050], length 0
        0x0000:  4500 0034 fed1 4000 4006 3df0 7f00 0001  E..4..@.@.=.....
        0x0010:  7f00 0001 c8ce 917f 63e1 717b 02e8 de3f  ........c.q{...?
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 8faa  ...V.(......./..
        0x0030:  052f 8faa                                ./..
13:52:21.947910 IP 127.0.0.1.51406 > 127.0.0.1.37247: Flags [P.], seq 1:154, 
ack 1, win 342, options [nop,nop,TS val 87003051 ecr 87003050], length 153
        0x0000:  4500 00cd fed2 4000 4006 3d56 7f00 0001  E.....@.@.=V....
        0x0010:  7f00 0001 c8ce 917f 63e1 717b 02e8 de3f  ........c.q{...?
        0x0020:  8018 0156 fec1 0000 0101 080a 052f 8fab  ...V........./..
        0x0030:  052f 8faa 4745 5420 2f46 696c 6531 2048  ./..GET./File1.H
        0x0040:  5454 502f 312e 310d 0a55 7365 722d 4167  TTP/1.1..User-Ag
        0x0050:  656e 743a 2057 6765 742f 312e 3139 2e31  ent:.Wget/1.19.1
        0x0060:  2028 6c69 6e75 782d 676e 7565 6162 6968  .(linux-gnueabih
        0x0070:  6629 0d0a 4163 6365 7074 3a20 2a2f 2a0d  f)..Accept:.*/*.
        0x0080:  0a41 6363 6570 742d 456e 636f 6469 6e67  .Accept-Encoding
        0x0090:  3a20 6964 656e 7469 7479 0d0a 486f 7374  :.identity..Host
        0x00a0:  3a20 3132 372e 302e 302e 313a 3337 3234  :.127.0.0.1:3724
        0x00b0:  370d 0a43 6f6e 6e65 6374 696f 6e3a 204b  7..Connection:.K
        0x00c0:  6565 702d 416c 6976 650d 0a0d 0a         eep-Alive....
13:52:21.948128 IP 127.0.0.1.37247 > 127.0.0.1.51406: Flags [.], ack 154, win 
350, options [nop,nop,TS val 87003051 ecr 87003051], length 0
        0x0000:  4500 0034 5194 4000 4006 eb2d 7f00 0001  E..4Q.@.@..-....
        0x0010:  7f00 0001 917f c8ce 02e8 de3f 63e1 7214  ...........?c.r.
        0x0020:  8010 015e fe28 0000 0101 080a 052f 8fab  ...^.(......./..
        0x0030:  052f 8fab                                ./..
13:52:21.954960 IP 127.0.0.1.37247 > 127.0.0.1.51406: Flags [P.], seq 1:105, 
ack 154, win 350, options [nop,nop,TS val 87003053 ecr 87003051], length 104
        0x0000:  4500 009c 5195 4000 4006 eac4 7f00 0001  E...Q.@.@.......
        0x0010:  7f00 0001 917f c8ce 02e8 de3f 63e1 7214  ...........?c.r.
        0x0020:  8018 015e fe90 0000 0101 080a 052f 8fad  ...^........./..
        0x0030:  052f 8fab 4854 5450 2f31 2e31 2035 3034  ./..HTTP/1.1.504
        0x0040:  2047 6174 6577 6179 2054 696d 656f 7574  .Gateway.Timeout
        0x0050:  0d0a 5365 7276 6572 3a20 4261 7365 4854  ..Server:.BaseHT
        0x0060:  5450 2f30 2e36 2050 7974 686f 6e2f 332e  TP/0.6.Python/3.
        0x0070:  362e 300d 0a44 6174 653a 2054 7565 2c20  6.0..Date:.Tue,.
        0x0080:  3134 2046 6562 2032 3031 3720 3133 3a35  14.Feb.2017.13:5
        0x0090:  323a 3231 2047 4d54 0d0a 0d0a            2:21.GMT....
13:52:21.955073 IP 127.0.0.1.51406 > 127.0.0.1.37247: Flags [.], ack 105, win 
342, options [nop,nop,TS val 87003053 ecr 87003053], length 0
        0x0000:  4500 0034 fed3 4000 4006 3dee 7f00 0001  E..4..@.@.=.....
        0x0010:  7f00 0001 c8ce 917f 63e1 7214 02e8 dea7  ........c.r.....
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 8fad  ...V.(......./..
        0x0030:  052f 8fad                                ./..
13:52:21.955967 IP 127.0.0.1.37247 > 127.0.0.1.51406: Flags [P.], seq 105:180, 
ack 154, win 350, options [nop,nop,TS val 87003053 ecr 87003053], length 75
        0x0000:  4500 007f 5196 4000 4006 eae0 7f00 0001  E...Q.@.@.......
        0x0010:  7f00 0001 917f c8ce 02e8 dea7 63e1 7214  ............c.r.
        0x0020:  8018 015e fe73 0000 0101 080a 052f 8fad  ...^.s......./..
        0x0030:  052f 8fad 416c 6c20 6861 7070 7920 6661  ./..All.happy.fa
        0x0040:  6d69 6c69 6573 2061 7265 2061 6c69 6b65  milies.are.alike
        0x0050:  3b0a 4561 6368 2075 6e68 6170 7079 2066  ;.Each.unhappy.f
        0x0060:  616d 696c 7920 6973 2075 6e68 6170 7079  amily.is.unhappy
        0x0070:  2069 6e20 6974 7320 6f77 6e20 7761 79    .in.its.own.way
13:52:21.956077 IP 127.0.0.1.51406 > 127.0.0.1.37247: Flags [.], ack 180, win 
342, options [nop,nop,TS val 87003053 ecr 87003053], length 0
        0x0000:  4500 0034 fed4 4000 4006 3ded 7f00 0001  E..4..@.@.=.....
        0x0010:  7f00 0001 c8ce 917f 63e1 7214 02e8 def2  ........c.r.....
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 8fad  ...V.(......./..
        0x0030:  052f 8fad                                ./..
13:52:22.956554 IP 127.0.0.1.51406 > 127.0.0.1.37247: Flags [R.], seq 154, ack 
180, win 342, options [nop,nop,TS val 87003253 ecr 87003053], length 0
        0x0000:  4500 0034 fed5 4000 4006 3dec 7f00 0001  E..4..@.@.=.....
        0x0010:  7f00 0001 c8ce 917f 63e1 7214 02e8 def2  ........c.r.....
        0x0020:  8014 0156 fe28 0000 0101 080a 052f 9075  ...V.(......./.u
        0x0030:  052f 8fad                                ./..
13:52:22.957177 IP 127.0.0.1.51408 > 127.0.0.1.37247: Flags [S], seq 
1689292739, win 43690, options [mss 65495,sackOK,TS val 87003253 ecr 
0,nop,wscale 7], length 0
        0x0000:  4500 003c 1fb6 4000 4006 1d04 7f00 0001  E..<..@.@.......
        0x0010:  7f00 0001 c8d0 917f 64b0 8fc3 0000 0000  ........d.......
        0x0020:  a002 aaaa fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  052f 9075 0000 0000 0103 0307            ./.u........
13:52:22.957314 IP 127.0.0.1.37247 > 127.0.0.1.51408: Flags [S.], seq 
3379580573, ack 1689292740, win 43690, options [mss 65495,sackOK,TS val 
87003253 ecr 87003253,nop,wscale 7], length 0
        0x0000:  4500 003c 0000 4000 4006 3cba 7f00 0001  E..<..@.@.<.....
        0x0010:  7f00 0001 917f c8d0 c970 4e9d 64b0 8fc4  .........pN.d...
        0x0020:  a012 aaaa fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  052f 9075 052f 9075 0103 0307            ./.u./.u....
13:52:22.957450 IP 127.0.0.1.51408 > 127.0.0.1.37247: Flags [.], ack 1, win 
342, options [nop,nop,TS val 87003253 ecr 87003253], length 0
        0x0000:  4500 0034 1fb7 4000 4006 1d0b 7f00 0001  E..4..@.@.......
        0x0010:  7f00 0001 c8d0 917f 64b0 8fc4 c970 4e9e  ........d....pN.
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 9075  ...V.(......./.u
        0x0030:  052f 9075                                ./.u
13:52:22.957956 IP 127.0.0.1.51408 > 127.0.0.1.37247: Flags [P.], seq 1:154, 
ack 1, win 342, options [nop,nop,TS val 87003253 ecr 87003253], length 153
        0x0000:  4500 00cd 1fb8 4000 4006 1c71 7f00 0001  E.....@.@..q....
        0x0010:  7f00 0001 c8d0 917f 64b0 8fc4 c970 4e9e  ........d....pN.
        0x0020:  8018 0156 fec1 0000 0101 080a 052f 9075  ...V........./.u
        0x0030:  052f 9075 4745 5420 2f46 696c 6531 2048  ./.uGET./File1.H
        0x0040:  5454 502f 312e 310d 0a55 7365 722d 4167  TTP/1.1..User-Ag
        0x0050:  656e 743a 2057 6765 742f 312e 3139 2e31  ent:.Wget/1.19.1
        0x0060:  2028 6c69 6e75 782d 676e 7565 6162 6968  .(linux-gnueabih
        0x0070:  6629 0d0a 4163 6365 7074 3a20 2a2f 2a0d  f)..Accept:.*/*.
        0x0080:  0a41 6363 6570 742d 456e 636f 6469 6e67  .Accept-Encoding
        0x0090:  3a20 6964 656e 7469 7479 0d0a 486f 7374  :.identity..Host
        0x00a0:  3a20 3132 372e 302e 302e 313a 3337 3234  :.127.0.0.1:3724
        0x00b0:  370d 0a43 6f6e 6e65 6374 696f 6e3a 204b  7..Connection:.K
        0x00c0:  6565 702d 416c 6976 650d 0a0d 0a         eep-Alive....
13:52:22.958069 IP 127.0.0.1.37247 > 127.0.0.1.51408: Flags [.], ack 154, win 
350, options [nop,nop,TS val 87003253 ecr 87003253], length 0
        0x0000:  4500 0034 deeb 4000 4006 5dd6 7f00 0001  E..4..@.@.].....
        0x0010:  7f00 0001 917f c8d0 c970 4e9e 64b0 905d  .........pN.d..]
        0x0020:  8010 015e fe28 0000 0101 080a 052f 9075  ...^.(......./.u
        0x0030:  052f 9075                                ./.u
13:52:23.002762 IP 127.0.0.1.37247 > 127.0.0.1.51408: Flags [P.], seq 1:105, 
ack 154, win 350, options [nop,nop,TS val 87003262 ecr 87003253], length 104
        0x0000:  4500 009c deec 4000 4006 5d6d 7f00 0001  E.....@.@.]m....
        0x0010:  7f00 0001 917f c8d0 c970 4e9e 64b0 905d  .........pN.d..]
        0x0020:  8018 015e fe90 0000 0101 080a 052f 907e  ...^........./.~
        0x0030:  052f 9075 4854 5450 2f31 2e31 2035 3034  ./.uHTTP/1.1.504
        0x0040:  2047 6174 6577 6179 2054 696d 656f 7574  .Gateway.Timeout
        0x0050:  0d0a 5365 7276 6572 3a20 4261 7365 4854  ..Server:.BaseHT
        0x0060:  5450 2f30 2e36 2050 7974 686f 6e2f 332e  TP/0.6.Python/3.
        0x0070:  362e 300d 0a44 6174 653a 2054 7565 2c20  6.0..Date:.Tue,.
        0x0080:  3134 2046 6562 2032 3031 3720 3133 3a35  14.Feb.2017.13:5
        0x0090:  323a 3233 2047 4d54 0d0a 0d0a            2:23.GMT....
13:52:23.002873 IP 127.0.0.1.51408 > 127.0.0.1.37247: Flags [.], ack 105, win 
342, options [nop,nop,TS val 87003262 ecr 87003262], length 0
        0x0000:  4500 0034 1fb9 4000 4006 1d09 7f00 0001  E..4..@.@.......
        0x0010:  7f00 0001 c8d0 917f 64b0 905d c970 4f06  ........d..].pO.
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 907e  ...V.(......./.~
        0x0030:  052f 907e                                ./.~
13:52:23.004505 IP 127.0.0.1.51408 > 127.0.0.1.37247: Flags [P.], seq 154:307, 
ack 105, win 342, options [nop,nop,TS val 87003263 ecr 87003262], length 153
        0x0000:  4500 00cd 1fba 4000 4006 1c6f 7f00 0001  E.....@.@..o....
        0x0010:  7f00 0001 c8d0 917f 64b0 905d c970 4f06  ........d..].pO.
        0x0020:  8018 0156 fec1 0000 0101 080a 052f 907f  ...V........./..
        0x0030:  052f 907e 4745 5420 2f46 696c 6532 2048  ./.~GET./File2.H
        0x0040:  5454 502f 312e 310d 0a55 7365 722d 4167  TTP/1.1..User-Ag
        0x0050:  656e 743a 2057 6765 742f 312e 3139 2e31  ent:.Wget/1.19.1
        0x0060:  2028 6c69 6e75 782d 676e 7565 6162 6968  .(linux-gnueabih
        0x0070:  6629 0d0a 4163 6365 7074 3a20 2a2f 2a0d  f)..Accept:.*/*.
        0x0080:  0a41 6363 6570 742d 456e 636f 6469 6e67  .Accept-Encoding
        0x0090:  3a20 6964 656e 7469 7479 0d0a 486f 7374  :.identity..Host
        0x00a0:  3a20 3132 372e 302e 302e 313a 3337 3234  :.127.0.0.1:3724
        0x00b0:  370d 0a43 6f6e 6e65 6374 696f 6e3a 204b  7..Connection:.K
        0x00c0:  6565 702d 416c 6976 650d 0a0d 0a         eep-Alive....
13:52:23.013982 IP 127.0.0.1.37247 > 127.0.0.1.51408: Flags [.], ack 307, win 
359, options [nop,nop,TS val 87003265 ecr 87003263], length 0
        0x0000:  4500 0034 deed 4000 4006 5dd4 7f00 0001  E..4..@.@.].....
        0x0010:  7f00 0001 917f c8d0 c970 4f06 64b0 90f6  .........pO.d...
        0x0020:  8010 0167 fe28 0000 0101 080a 052f 9081  ...g.(......./..
        0x0030:  052f 907f                                ./..
13:52:23.014970 IP 127.0.0.1.37247 > 127.0.0.1.51408: Flags [P.], seq 105:180, 
ack 307, win 359, options [nop,nop,TS val 87003265 ecr 87003263], length 75
        0x0000:  4500 007f deee 4000 4006 5d88 7f00 0001  E.....@.@.].....
        0x0010:  7f00 0001 917f c8d0 c970 4f06 64b0 90f6  .........pO.d...
        0x0020:  8018 0167 fe73 0000 0101 080a 052f 9081  ...g.s......./..
        0x0030:  052f 907f 416c 6c20 6861 7070 7920 6661  ./..All.happy.fa
        0x0040:  6d69 6c69 6573 2061 7265 2061 6c69 6b65  milies.are.alike
        0x0050:  3b0a 4561 6368 2075 6e68 6170 7079 2066  ;.Each.unhappy.f
        0x0060:  616d 696c 7920 6973 2075 6e68 6170 7079  amily.is.unhappy
        0x0070:  2069 6e20 6974 7320 6f77 6e20 7761 79    .in.its.own.way
13:52:23.058918 IP 127.0.0.1.51408 > 127.0.0.1.37247: Flags [.], ack 180, win 
342, options [nop,nop,TS val 87003274 ecr 87003265], length 0
        0x0000:  4500 0034 1fbb 4000 4006 1d07 7f00 0001  E..4..@.@.......
        0x0010:  7f00 0001 c8d0 917f 64b0 90f6 c970 4f51  ........d....pOQ
        0x0020:  8010 0156 fe28 0000 0101 080a 052f 908a  ...V.(......./..
        0x0030:  052f 9081                                ./..
13:52:23.059090 IP 127.0.0.1.37247 > 127.0.0.1.51408: Flags [P.], seq 180:346, 
ack 307, win 359, options [nop,nop,TS val 87003274 ecr 87003274], length 166
        0x0000:  4500 00da deef 4000 4006 5d2c 7f00 0001  E.....@.@.],....
        0x0010:  7f00 0001 917f c8d0 c970 4f51 64b0 90f6  .........pOQd...
        0x0020:  8018 0167 fece 0000 0101 080a 052f 908a  ...g........./..
        0x0030:  052f 908a 4854 5450 2f31 2e31 2032 3030  ./..HTTP/1.1.200
        0x0040:  204f 4b0d 0a53 6572 7665 723a 2042 6173  .OK..Server:.Bas
        0x0050:  6548 5454 502f 302e 3620 5079 7468 6f6e  eHTTP/0.6.Python
        0x0060:  2f33 2e36 2e30 0d0a 4461 7465 3a20 5475  /3.6.0..Date:.Tu
        0x0070:  652c 2031 3420 4665 6220 3230 3137 2031  e,.14.Feb.2017.1
        0x0080:  333a 3532 3a32 3320 474d 540d 0a63 6f6e  3:52:23.GMT..con
        0x0090:  7465 6e74 2d74 7970 653a 2074 6578 742f  tent-type:.text/
        0x00a0:  706c 6169 6e0d 0a63 6f6e 7465 6e74 2d6c  plain..content-l
        0x00b0:  656e 6774 683a 2032 390d 0a0d 0a41 6e79  ength:.29....Any
        0x00c0:  6f6e 6520 666f 7220 6368 6f63 6f63 6869  one.for.chocochi
        0x00d0:  7020 636f 6f6b 6965 733f                 p.cookies?
13:52:23.059178 IP 127.0.0.1.51408 > 127.0.0.1.37247: Flags [.], ack 346, win 
350, options [nop,nop,TS val 87003274 ecr 87003274], length 0
        0x0000:  4500 0034 1fbc 4000 4006 1d06 7f00 0001  E..4..@.@.......
        0x0010:  7f00 0001 c8d0 917f 64b0 90f6 c970 4ff7  ........d....pO.
        0x0020:  8010 015e fe28 0000 0101 080a 052f 908a  ...^.(......./..
        0x0030:  052f 908a                                ./..
13:52:34.451499 IP 127.0.0.1.51408 > 127.0.0.1.37247: Flags [F.], seq 307, ack 
346, win 350, options [nop,nop,TS val 87005552 ecr 87003274], length 0
        0x0000:  4500 0034 1fbd 4000 4006 1d05 7f00 0001  E..4..@.@.......
        0x0010:  7f00 0001 c8d0 917f 64b0 90f6 c970 4ff7  ........d....pO.
        0x0020:  8011 015e fe28 0000 0101 080a 052f 9970  ...^.(......./.p
        0x0030:  052f 908a                                ./..
13:52:34.452460 IP 127.0.0.1.37247 > 127.0.0.1.51408: Flags [F.], seq 346, ack 
308, win 359, options [nop,nop,TS val 87005552 ecr 87005552], length 0
        0x0000:  4500 0034 def0 4000 4006 5dd1 7f00 0001  E..4..@.@.].....
        0x0010:  7f00 0001 917f c8d0 c970 4ff7 64b0 90f7  .........pO.d...
        0x0020:  8011 0167 fe28 0000 0101 080a 052f 9970  ...g.(......./.p
        0x0030:  052f 9970                                ./.p
13:52:34.452623 IP 127.0.0.1.51408 > 127.0.0.1.37247: Flags [.], ack 347, win 
350, options [nop,nop,TS val 87005552 ecr 87005552], length 0
        0x0000:  4500 0034 1fbe 4000 4006 1d04 7f00 0001  E..4..@.@.......
        0x0010:  7f00 0001 c8d0 917f 64b0 90f7 c970 4ff8  ........d....pO.
        0x0020:  8010 015e fe28 0000 0101 080a 052f 9970  ...^.(......./.p
        0x0030:  052f 9970                                ./.p
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 <module>
    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)

Reply via email to