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
78716e08
Commit
78716e08
authored
Dec 24, 2015
by
Dridi Boukelmoune
Committed by
Lasse Karstensen
Jun 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close the socket
parent
93b77d9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vmod_debug.c
lib/libvmod_debug/vmod_debug.c
+4
-3
No files found.
lib/libvmod_debug/vmod_debug.c
View file @
78716e08
...
...
@@ -484,7 +484,7 @@ vmod_barrier_sync(VRT_CTX, VCL_STRING addr)
{
const
char
*
err
;
char
buf
[
32
];
int
sock
;
int
sock
,
i
;
ssize_t
sz
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
...
...
@@ -499,12 +499,13 @@ vmod_barrier_sync(VRT_CTX, VCL_STRING addr)
}
sz
=
read
(
sock
,
buf
,
sizeof
buf
);
i
=
errno
;
AZ
(
close
(
sock
));
if
(
sz
==
0
)
return
(
1
);
if
(
sz
<
0
)
VSLb
(
ctx
->
vsl
,
SLT_Error
,
"Barrier connection failed: %s (errno=%d)"
,
strerror
(
errno
),
errno
);
"Barrier connection failed: %s (errno=%d)"
,
strerror
(
i
),
i
);
if
(
sz
>
0
)
VSLb
(
ctx
->
vsl
,
SLT_Error
,
"Barrier unexpected data (%ldB)"
,
sz
);
return
(
0
);
...
...
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