File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed
Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ sleep 0.1
99
1010echo download1 1>&2
1111curl -N " http://localhost:${PORT} /foo_50" -o data21 \
12- -H ' Tranfer-encoding: chunked'
12+ -H ' Tranfer-encoding: chunked' --max-time 10
1313
1414echo download2 1>&2
1515curl -N " http://localhost:${PORT} /foo_50" -o data22 \
16- -H ' Tranfer-encoding: chunked'
16+ -H ' Tranfer-encoding: chunked' --max-time 10
1717
1818echo download3 1>&2
1919curl -N " http://localhost:${PORT} /foo_50" -o data23 \
20- -H ' Tranfer-encoding: chunked'
20+ -H ' Tranfer-encoding: chunked' --max-time 10
2121
2222kill $PID
2323wc data21 data22 data23
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ PORT=8085
66" $ECHO " -p $PORT &
77PID=$!
88sleep 0.1
9- curl -N " http://localhost:${PORT} /echo/?a=b&c=d" -H user-agent:test
9+ curl -N " http://localhost:${PORT} /echo/?a=b&c=d" -H user-agent:test --max-time 5
1010
1111sleep 0.1
12- curl -N " http://localhost:${PORT} /vfs/"
12+ curl -N " http://localhost:${PORT} /vfs/" --max-time 5
1313
1414sleep 0.1
15- curl -N " http://localhost:${PORT} /vfs/a.txt"
15+ curl -N " http://localhost:${PORT} /vfs/a.txt" --max-time 5
1616
1717sleep 0.1
18- curl -N " http://localhost:${PORT} /vfs/sub/yolo.html"
18+ curl -N " http://localhost:${PORT} /vfs/sub/yolo.html" --max-time 5
1919
2020kill $PID
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ PORT=8086
77PID=$!
88sleep 0.1
99
10- curl -N " http://localhost:${PORT} /count/10" -H user-agent:test
10+ curl -N " http://localhost:${PORT} /count/10" -H user-agent:test --max-time 10
1111kill $PID
Original file line number Diff line number Diff line change 11serve directory . on http://127.0.0.1:8087
2- server error: Invalid_argument("Bytes.blit")0 0 0 data
2+ upload successful 0 0 52428800 data
Original file line number Diff line number Diff line change 1010
1111sleep 0.1
1212
13- cat foo_50 | curl -N -X PUT http://localhost:$PORT /data --data-binary @- -H ' Transfer-Encoding: chunked'
13+ cat foo_50 | curl -N -X PUT http://localhost:$PORT /data --data-binary @- \
14+ -H ' Transfer-Encoding: chunked' --max-time 10
1415
1516kill $PID
1617wc data
You can’t perform that action at this time.
0 commit comments