Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
b0b5eaa1
Commit
b0b5eaa1
authored
Feb 27, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flexelinting
parent
c310f04b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
30 deletions
+30
-30
vtc_client.c
bin/varnishtest/vtc_client.c
+4
-4
vtc_h2_hpack.c
bin/varnishtest/vtc_h2_hpack.c
+1
-1
vtc_http.c
bin/varnishtest/vtc_http.c
+2
-2
vtc_http2.c
bin/varnishtest/vtc_http2.c
+21
-21
vtc_server.c
bin/varnishtest/vtc_server.c
+1
-1
vtc_varnish.c
bin/varnishtest/vtc_varnish.c
+1
-1
No files found.
bin/varnishtest/vtc_client.c
View file @
b0b5eaa1
...
...
@@ -133,8 +133,8 @@ client_tcp_connect(struct vtclog *vl, const char *addr, double tmo,
static
int
v_matchproto_
(
vus_resolved_f
)
uds_open
(
void
*
priv
,
const
struct
sockaddr_un
*
uds
)
{
double
*
p
,
tmo
;
int
s
,
i
;
double
*
p
;
int
s
,
i
,
tmo
;
struct
pollfd
fds
[
1
];
socklen_t
sl
=
sizeof
(
*
uds
);
...
...
@@ -142,14 +142,14 @@ uds_open(void *priv, const struct sockaddr_un *uds)
AN
(
uds
);
p
=
priv
;
assert
(
*
p
>
0
.);
tmo
=
*
p
*
1e3
;
tmo
=
(
int
)(
*
p
*
1e3
)
;
s
=
socket
(
uds
->
sun_family
,
SOCK_STREAM
,
0
);
if
(
s
<
0
)
return
(
s
);
(
void
)
VTCP_nonblocking
(
s
);
i
=
connect
(
s
,
(
const
struct
sockaddr
*
)
uds
,
sl
);
i
=
connect
(
s
,
(
const
void
*
)
uds
,
sl
);
if
(
i
==
0
)
return
(
s
);
if
(
errno
!=
EINPROGRESS
)
{
...
...
bin/varnishtest/vtc_h2_hpack.c
View file @
b0b5eaa1
...
...
@@ -395,7 +395,7 @@ HPK_EncHdr(struct hpk_iter *iter, const struct hpk_hdr *h)
switch
(
h
->
t
)
{
case
hpk_idx
:
*
iter
->
buf
=
0x80
;
num_encode
(
iter
,
7
,
h
->
i
);
assert
(
num_encode
(
iter
,
7
,
h
->
i
)
!=
hpk_err
);
return
(
ITER_DONE
(
iter
));
case
hpk_inc
:
*
iter
->
buf
=
0x40
;
...
...
bin/varnishtest/vtc_http.c
View file @
b0b5eaa1
...
...
@@ -836,7 +836,7 @@ http_tx_parse_args(char * const *av, struct vtclog *vl, struct http *hp,
{
int
bodylen
=
0
;
char
*
b
,
*
c
;
char
*
nullbody
=
NULL
;
char
*
nullbody
;
int
nolen
=
0
;
int
l
;
...
...
@@ -1727,7 +1727,7 @@ cmd_http_settings(CMD_ARGS)
if
(
*
p
!=
'\0'
)
vtc_fatal
(
hp
->
vl
,
"-dectbl takes an integer as "
"argument (found %s)"
,
av
[
1
]);
HPK_ResizeTbl
(
hp
->
decctx
,
n
);
assert
(
HPK_ResizeTbl
(
hp
->
decctx
,
n
)
!=
hpk_err
);
av
++
;
}
else
vtc_fatal
(
vl
,
"Unknown settings spec: %s
\n
"
,
*
av
);
...
...
bin/varnishtest/vtc_http2.c
View file @
b0b5eaa1
...
...
@@ -829,8 +829,8 @@ receive_frame(void *priv)
continue
;
}
AZ
(
pthread_mutex_unlock
(
&
hp
->
mtx
));
if
(
!
vtc_error
)
AZ
(
vsb
);
if
(
vsb
!=
NULL
)
VSB_destroy
(
&
vsb
);
return
(
NULL
);
}
...
...
@@ -1238,19 +1238,19 @@ cmd_sendhex(CMD_ARGS)
VSB_destroy
(
&
vsb
);
}
#define ENC(hdr, k, v) \
{ \
AN(k); \
hdr.key.ptr = strdup(k); \
AN(hdr.key.ptr); \
hdr.key.len = strlen(k); \
AN(v); \
hdr.value.ptr = strdup(v); \
AN(hdr.value.ptr); \
hdr.value.len = strlen(v); \
(void)HPK_EncHdr(iter, &hd
r); \
free(hdr.key.ptr); \
free(hdr.value.ptr); \
#define ENC(hdr, k, v)
\
{
\
AN(k);
\
hdr.key.ptr = strdup(k);
\
AN(hdr.key.ptr);
\
hdr.key.len = strlen(k);
\
AN(v);
\
hdr.value.ptr = strdup(v);
\
AN(hdr.value.ptr);
\
hdr.value.len = strlen(v);
\
assert(HPK_EncHdr(iter, &hdr) != hpk_er
r); \
free(hdr.key.ptr);
\
free(hdr.value.ptr);
\
}
#define STR_ENC(av, field, str) \
...
...
@@ -1452,7 +1452,7 @@ cmd_tx11obj(CMD_ARGS)
else
if
(
AV_IS
(
"-idxHdr"
))
{
hdr
.
t
=
hpk_idx
;
STRTOU32_CHECK
(
hdr
.
i
,
av
,
p
,
vl
,
"-idxHdr"
,
0
);
HPK_EncHdr
(
iter
,
&
hd
r
);
assert
(
HPK_EncHdr
(
iter
,
&
hdr
)
!=
hpk_er
r
);
}
else
if
(
AV_IS
(
"-litIdxHdr"
))
{
av
++
;
...
...
@@ -1469,7 +1469,7 @@ cmd_tx11obj(CMD_ARGS)
hdr
.
key
.
ptr
=
NULL
;
hdr
.
key
.
len
=
0
;
STR_ENC
(
av
,
value
,
"third -litHdr"
);
HPK_EncHdr
(
iter
,
&
hd
r
);
assert
(
HPK_EncHdr
(
iter
,
&
hdr
)
!=
hpk_er
r
);
}
else
if
(
AV_IS
(
"-litHdr"
))
{
av
++
;
...
...
@@ -1482,7 +1482,7 @@ cmd_tx11obj(CMD_ARGS)
STR_ENC
(
av
,
key
,
"second -litHdr"
);
STR_ENC
(
av
,
value
,
"fourth -litHdr"
);
HPK_EncHdr
(
iter
,
&
hd
r
);
assert
(
HPK_EncHdr
(
iter
,
&
hdr
)
!=
hpk_er
r
);
}
else
if
(
AV_IS
(
"-nostrend"
))
{
f
.
flags
&=
~
END_STREAM
;
...
...
@@ -1852,7 +1852,7 @@ cmd_txsettings(CMD_ARGS)
}
else
if
(
!
strcmp
(
*
av
,
"-hdrtbl"
))
{
PUT_KV
(
av
,
vl
,
hdrtbl
,
val
,
0x1
);
HPK_ResizeTbl
(
s
->
hp
->
decctx
,
val
);
assert
(
HPK_ResizeTbl
(
s
->
hp
->
decctx
,
val
)
!=
hpk_err
);
}
else
if
(
!
strcmp
(
*
av
,
"-maxstreams"
))
PUT_KV
(
av
,
vl
,
maxstreams
,
val
,
0x3
);
...
...
@@ -2726,9 +2726,9 @@ b64_settings(const struct http *hp, const char *s)
if
(
v
==
1
)
{
if
(
hp
->
sfd
)
HPK_ResizeTbl
(
hp
->
encctx
,
v
);
assert
(
HPK_ResizeTbl
(
hp
->
encctx
,
v
)
!=
hpk_err
);
else
HPK_ResizeTbl
(
hp
->
decctx
,
v
);
assert
(
HPK_ResizeTbl
(
hp
->
decctx
,
v
)
!=
hpk_err
);
}
vtc_log
(
hp
->
vl
,
4
,
"Upgrade: %s (%d): %ju"
,
...
...
bin/varnishtest/vtc_server.c
View file @
b0b5eaa1
...
...
@@ -168,7 +168,7 @@ server_listen_uds(struct server *s, const char **errp)
*/
m
=
umask
(
0
);
s
->
sock
=
VUS_resolver
(
s
->
listen
,
uds_listen
,
&
h
,
errp
);
umask
(
m
);
(
void
)
umask
(
m
);
if
(
*
errp
!=
NULL
)
return
;
assert
(
s
->
sock
>
0
);
...
...
bin/varnishtest/vtc_varnish.c
View file @
b0b5eaa1
...
...
@@ -65,7 +65,7 @@ struct varnish {
int
fds
[
4
];
pid_t
pid
;
float
syntax
;
double
syntax
;
pthread_t
tp
;
pthread_t
tp_vsl
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment