blob: 7f262d75dc27b92e2f7987666c65afe18f033dea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
varnishtest "HTTP response size tests: H2->H1 (HTX and legacy mode)"
feature ignore_unknown_macro
server s1 {
rxreq
txresp \
-status 200 \
-nolen \
-hdr "Transfer-encoding: chunked"
# -bodylen 16300
#chunkedlen 16300
#delay 0.05
chunkedlen 815
#delay 0.05
chunkedlen 815
delay 0.05
chunkedlen 815
#delay 0.05
chunkedlen 815
delay 0.05
chunkedlen 815
#delay 0.05
chunkedlen 815
delay 0.05
chunkedlen 815
#delay 0.05
chunkedlen 815
delay 0.05
chunkedlen 815
#delay 0.05
chunkedlen 815
delay 0.05
chunkedlen 815
#delay 0.05
chunkedlen 815
delay 0.05
chunkedlen 815
#delay 0.05
chunkedlen 815
delay 0.05
chunkedlen 815
#delay 0.05
chunkedlen 815
delay 0.05
chunkedlen 815
#delay 0.05
chunkedlen 815
delay 0.05
chunkedlen 815
#delay 0.05
chunkedlen 815
delay 0.05
} -repeat 2 -start
haproxy h1 -conf {
defaults
#log stdout format raw daemon
mode http
option http-buffer-request
timeout connect 1s
timeout client 1s
timeout server 1s
listen feh1
bind "fd@${feh1}"
bind "fd@${feh2}" proto h2
http-response add-header a b
#http-response del-header content-length
server s1 ${s1_addr}:${s1_port}
} -start
client c1h2 -connect ${h1_feh2_sock} {
txpri
stream 0 {
txsettings
rxsettings
txsettings -ack
rxsettings
expect settings.ack == true
} -run
# first request is valid
stream 1 {
txreq \
-req "GET" \
-scheme "https" \
-url "/test1.html"
rxhdrs
#delay 0.1
expect resp.status == 200
rxdata -all
expect resp.bodylen == 16300
#expect resp.chunkedlen == 16300
} -run
} -repeat 2 -run
|