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
948e3fd0
Commit
948e3fd0
authored
Jan 07, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start a new transaction (xid) on restart
parent
d9fa76bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
cache_req_fsm.c
bin/varnishd/cache/cache_req_fsm.c
+12
-1
No files found.
bin/varnishd/cache/cache_req_fsm.c
View file @
948e3fd0
...
...
@@ -627,17 +627,28 @@ DOT err_restart [label="ERROR",shape=plaintext]
*/
static
enum
req_fsm_nxt
cnt_restart
(
const
struct
worker
*
wrk
,
struct
req
*
req
)
cnt_restart
(
struct
worker
*
wrk
,
struct
req
*
req
)
{
unsigned
wid
,
owid
;
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
req
->
director
=
NULL
;
if
(
++
req
->
restarts
>=
cache_param
->
max_restarts
)
{
VSLb
(
req
->
vsl
,
SLT_VCL_Error
,
"Too many restarts"
);
req
->
err_code
=
503
;
req
->
req_step
=
R_STP_ERROR
;
}
else
{
wid
=
VXID_Get
(
&
wrk
->
vxid_pool
);
// XXX: ReqEnd + ReqAcct ?
VSLb
(
req
->
vsl
,
SLT_Link
,
"req %u"
,
wid
);
VSLb
(
req
->
vsl
,
SLT_End
,
""
);
VSL_Flush
(
req
->
vsl
,
0
);
owid
=
req
->
vsl
->
wid
&
VSL_IDENTMASK
;
req
->
vsl
->
wid
=
wid
|
VSL_CLIENTMARKER
;
VSLb
(
req
->
vsl
,
SLT_Begin
,
"req %u"
,
owid
);
req
->
err_code
=
0
;
req
->
req_step
=
R_STP_RECV
;
}
...
...
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