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
6e386ef6
Commit
6e386ef6
authored
Feb 08, 2016
by
Poul-Henning Kamp
Committed by
Lasse Karstensen
Feb 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set socket non-blocking before closing, if we are load-shedding it.
parent
ddc87188
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cache_acceptor.c
bin/varnishd/cache/cache_acceptor.c
+2
-1
No files found.
bin/varnishd/cache/cache_acceptor.c
View file @
6e386ef6
...
...
@@ -313,9 +313,10 @@ vca_make_session(struct worker *wrk, void *arg)
* connection with minimum effort and fuzz, rather than try
* to send an intelligent message back.
*/
vca_pace_bad
();
(
void
)
VTCP_nonblocking
(
wa
->
acceptsock
);
AZ
(
close
(
wa
->
acceptsock
));
wrk
->
stats
->
sess_drop
++
;
vca_pace_bad
();
WS_Release
(
wrk
->
aws
,
0
);
return
;
}
...
...
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