Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
ac666733
Commit
ac666733
authored
Oct 13, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quit early if setting blocking mode fails.
Submitted by: Nils Goroll
parent
99884082
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
cache_center.c
bin/varnishd/cache_center.c
+13
-6
No files found.
bin/varnishd/cache_center.c
View file @
ac666733
...
@@ -1573,14 +1573,21 @@ CNT_Session(struct sess *sp)
...
@@ -1573,14 +1573,21 @@ CNT_Session(struct sess *sp)
AZ
(
w
->
do_esi
);
AZ
(
w
->
do_esi
);
/*
/*
* Whenever we come in from the acceptor
we need to set blocking
* Whenever we come in from the acceptor
or waiter, we need to set
* mode, but there is no point in setting it when we come from
*
blocking
mode, but there is no point in setting it when we come from
* ESI or when a parked sessions returns.
* ESI or when a parked sessions returns.
* It would be simpler to do this in the acceptor, but we'd rather
* It would be simpler to do this in the acceptor or waiter, but we'd
* do the syscall in the worker thread.
* rather do the syscall in the worker thread.
* On systems which return errors for ioctl, we close early
*/
*/
if
(
sp
->
step
==
STP_FIRST
||
sp
->
step
==
STP_START
)
if
((
sp
->
step
==
STP_FIRST
||
sp
->
step
==
STP_START
)
&&
(
void
)
VTCP_blocking
(
sp
->
fd
);
VTCP_blocking
(
sp
->
fd
))
{
if
(
errno
==
ECONNRESET
)
SES_Close
(
sp
,
"remote closed"
);
else
SES_Close
(
sp
,
"error"
);
sp
->
step
=
STP_DONE
;
}
/*
/*
* NB: Once done is set, we can no longer touch sp!
* NB: Once done is set, we can no longer touch sp!
...
...
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