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
208fb450
Commit
208fb450
authored
Nov 30, 2017
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace OCD
parent
752489b5
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
15 additions
and
15 deletions
+15
-15
cache_http1_deliver.c
bin/varnishd/http1/cache_http1_deliver.c
+2
-2
cache_proxy_proto.c
bin/varnishd/proxy/cache_proxy_proto.c
+1
-1
apispaces.rst
doc/sphinx/phk/apispaces.rst
+2
-2
changes-5.2.rst
doc/sphinx/whats-new/changes-5.2.rst
+1
-1
binary_heap.c
lib/libvarnish/binary_heap.c
+1
-1
vcli_serve.c
lib/libvarnish/vcli_serve.c
+1
-1
vsc.c
lib/libvarnishapi/vsc.c
+2
-2
vsl_arg.c
lib/libvarnishapi/vsl_arg.c
+2
-2
url.c
lib/libvmod_blob/url.c
+1
-1
vmod_blob.c
lib/libvmod_blob/vmod_blob.c
+2
-2
No files found.
bin/varnishd/http1/cache_http1_deliver.c
View file @
208fb450
...
...
@@ -145,13 +145,13 @@ V1D_Deliver(struct req *req, struct boc *boc, int sendbody)
if
(
DO_DEBUG
(
DBG_FLUSH_HEAD
))
(
void
)
V1L_Flush
(
req
->
wrk
);
if
(
!
sendbody
||
req
->
res_mode
&
RES_ESI
)
if
(
!
sendbody
||
req
->
res_mode
&
RES_ESI
)
if
(
V1L_Close
(
req
->
wrk
)
&&
req
->
sp
->
fd
>=
0
)
{
Req_Fail
(
req
,
SC_REM_CLOSE
);
sendbody
=
0
;
}
if
(
!
sendbody
)
{
if
(
!
sendbody
)
{
AZ
(
req
->
wrk
->
v1l
);
VDP_close
(
req
);
return
;
...
...
bin/varnishd/proxy/cache_proxy_proto.c
View file @
208fb450
...
...
@@ -467,7 +467,7 @@ VPX_Send_Proxy(int fd, int version, const struct sess *sp)
AZ
(
VSB_finish
(
vsb
));
(
void
)
write
(
fd
,
VSB_data
(
vsb
),
VSB_len
(
vsb
));
if
(
!
DO_DEBUG
(
DBG_PROTOCOL
))
{
if
(
!
DO_DEBUG
(
DBG_PROTOCOL
))
{
VSB_delete
(
vsb
);
return
;
}
...
...
doc/sphinx/phk/apispaces.rst
View file @
208fb450
...
...
@@ -98,7 +98,7 @@ This API space could also have been called 'inline', because it
is basically what you see in the C-source generated by VCC:
| Include files allowed:
|
|
| ``#include "vdef.h"``
| ``#include "vrt.h"``
| ``#include "vrt_obj.h"``
...
...
@@ -125,7 +125,7 @@ This API space provides access to everything in the ``VRT`` API
space plus the other exposed and supported APIs in varnishd.
| Include files allowed:
|
|
| ``#include "cache.h" // NB: includes vdef.h and vrt.h``
| ``#include "cache_backend.h"``
| ``#include "cache_director.h"``
...
...
doc/sphinx/whats-new/changes-5.2.rst
View file @
208fb450
...
...
@@ -46,7 +46,7 @@ See :ref:`vmod_purge(3)`.
VMOD vtc
--------
As long as we have had VMODs, we had an internal vmod called ``vmod_debug``
As long as we have had VMODs, we had an internal vmod called ``vmod_debug``
which was used with ``varnishtest`` to exercise the VMOD related parts of
``varnishd``. Over time this vmod grew other useful functions for writing
test-cases.
...
...
lib/libvarnish/binary_heap.c
View file @
208fb450
...
...
@@ -537,7 +537,7 @@ main(int argc, char **argv)
child
(
bh
,
n
+
1
,
&
u
,
&
v
);
}
for
(
j
=
0
;
j
<
2
;
j
++
)
{
for
(
j
=
0
;
j
<
2
;
j
++
)
{
/* First insert our N elements */
for
(
u
=
0
;
u
<
N
;
u
++
)
{
lr
=
VRND_RandomTestable
()
%
R
;
...
...
lib/libvarnish/vcli_serve.c
View file @
208fb450
...
...
@@ -339,7 +339,7 @@ cls_feed(struct VCLS_fd *cfd, const char *p, const char *e)
cli
=
cfd
->
cli
;
CHECK_OBJ_NOTNULL
(
cli
,
CLI_MAGIC
);
for
(;
p
<
e
;
p
++
)
{
for
(;
p
<
e
;
p
++
)
{
if
(
cli
->
cmd
==
NULL
&&
isspace
(
*
p
))
{
/* Ignore all leading space before cmd */
continue
;
...
...
lib/libvarnishapi/vsc.c
View file @
208fb450
...
...
@@ -301,7 +301,7 @@ vsc_del_seg(const struct vsc *vsc, struct vsm *vsm, struct vsc_seg *sp)
AZ
(
VSM_Unmap
(
vsm
,
sp
->
fantom
));
vjsn_delete
(
&
sp
->
vj
);
pp
=
sp
->
points
;
for
(
u
=
0
;
u
<
sp
->
npoints
;
u
++
,
pp
++
)
{
for
(
u
=
0
;
u
<
sp
->
npoints
;
u
++
,
pp
++
)
{
if
(
vsc
->
fdestroy
!=
NULL
)
vsc
->
fdestroy
(
vsc
->
priv
,
&
pp
->
point
);
vsc_clean_point
(
pp
);
...
...
@@ -381,7 +381,7 @@ vsc_iter_seg(const struct vsc *vsc, const struct vsc_seg *sp,
CHECK_OBJ_NOTNULL
(
sp
,
VSC_SEG_MAGIC
);
AN
(
fiter
);
pp
=
sp
->
points
;
for
(
u
=
0
;
u
<
sp
->
npoints
&&
i
==
0
;
u
++
,
pp
++
)
{
for
(
u
=
0
;
u
<
sp
->
npoints
&&
i
==
0
;
u
++
,
pp
++
)
{
if
(
pp
->
name
!=
NULL
)
i
=
fiter
(
priv
,
&
pp
->
point
);
}
...
...
lib/libvarnishapi/vsl_arg.c
View file @
208fb450
...
...
@@ -96,7 +96,7 @@ VSL_Glob2Tags(const char *glob, int l, VSL_tagfind_f *func, void *priv)
if
(
glob
==
e
)
return
(
-
1
);
// Empty pattern cannot match
for
(
p
=
glob
;
p
<
e
;
p
++
)
for
(
p
=
glob
;
p
<
e
;
p
++
)
if
(
*
p
==
'*'
)
break
;
...
...
@@ -119,7 +119,7 @@ VSL_Glob2Tags(const char *glob, int l, VSL_tagfind_f *func, void *priv)
l2
=
e
-
p2
;
}
for
(
p
++
;
p
<
e
;
p
++
)
for
(
p
++
;
p
<
e
;
p
++
)
if
(
*
p
==
'*'
)
return
(
-
3
);
// More than one wildcard
...
...
lib/libvmod_blob/url.c
View file @
208fb450
...
...
@@ -137,7 +137,7 @@ url_decode(const enum encoding dec, char *restrict const buf,
while
(
*
s
&&
len
)
{
uint8_t
nib2
;
switch
(
state
)
{
switch
(
state
)
{
case
NORMAL
:
if
(
*
s
==
'%'
)
state
=
PERCENT
;
...
...
lib/libvmod_blob/vmod_blob.c
View file @
208fb450
...
...
@@ -141,7 +141,7 @@ decode_l_va(enum encoding dec, const char * const p, va_list ap)
static
void
err_decode
(
VRT_CTX
,
const
char
*
enc
)
{
switch
(
errno
)
{
switch
(
errno
)
{
case
EINVAL
:
ERRINVAL
(
ctx
,
enc
);
break
;
...
...
@@ -156,7 +156,7 @@ err_decode(VRT_CTX, const char *enc)
static
inline
enum
case_e
parse_case
(
VCL_ENUM
case_s
)
{
switch
(
*
case_s
)
{
switch
(
*
case_s
)
{
case
'D'
:
AZ
(
strcmp
(
case_s
+
1
,
"EFAULT"
));
return
DEFAULT
;
...
...
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