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
8a22dbf5
Commit
8a22dbf5
authored
May 03, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Account for all attempted fetches.
Update some VSC descriptions while at it.
parent
49a42aa1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
30 deletions
+35
-30
cache_center.c
bin/varnishd/cache/cache_center.c
+2
-1
vsc_f_main.h
include/tbl/vsc_f_main.h
+33
-29
No files found.
bin/varnishd/cache/cache_center.c
View file @
8a22dbf5
...
...
@@ -576,6 +576,8 @@ cnt_fetch(struct sess *sp, struct worker *wrk, struct req *req)
need_host_hdr
=
!
http_GetHdr
(
bo
->
bereq
,
H_Host
,
NULL
);
wrk
->
acct_tmp
.
fetch
++
;
i
=
FetchHdr
(
sp
,
need_host_hdr
,
req
->
objcore
==
NULL
);
/*
* If we recycle a backend connection, there is a finite chance
...
...
@@ -902,7 +904,6 @@ cnt_fetchbody(struct sess *sp, struct worker *wrk, struct req *req)
HSH_Ref
(
req
->
obj
->
objcore
);
VBO_DerefBusyObj
(
wrk
,
&
req
->
busyobj
);
wrk
->
acct_tmp
.
fetch
++
;
sp
->
step
=
STP_PREPRESP
;
return
(
0
);
}
...
...
include/tbl/vsc_f_main.h
View file @
8a22dbf5
...
...
@@ -147,53 +147,57 @@ VSC_F(backend_retry, uint64_t, 0, 'a',
""
)
VSC_F
(
fetch_head
,
uint64_t
,
1
,
'a'
,
"Fetch head"
,
""
/*---------------------------------------------------------------------
* Backend fetch statistics
*/
VSC_F
(
fetch_head
,
uint64_t
,
1
,
'c'
,
"Fetch no body (HEAD)"
,
"beresp with no body because the request is HEAD."
)
VSC_F
(
fetch_length
,
uint64_t
,
1
,
'
a
'
,
VSC_F
(
fetch_length
,
uint64_t
,
1
,
'
c
'
,
"Fetch with Length"
,
""
"
beresp with Content-Length.
"
)
VSC_F
(
fetch_chunked
,
uint64_t
,
1
,
'
a
'
,
VSC_F
(
fetch_chunked
,
uint64_t
,
1
,
'
c
'
,
"Fetch chunked"
,
""
"
beresp with Chunked.
"
)
VSC_F
(
fetch_eof
,
uint64_t
,
1
,
'
a
'
,
VSC_F
(
fetch_eof
,
uint64_t
,
1
,
'
c
'
,
"Fetch EOF"
,
""
"
beresp with EOF from lack of other info.
"
)
VSC_F
(
fetch_bad
,
uint64_t
,
1
,
'
a
'
,
"Fetch
had bad headers
"
,
""
VSC_F
(
fetch_bad
,
uint64_t
,
1
,
'
c
'
,
"Fetch
bad T-E
"
,
"
beresp failed due to unknown Transfer-Encoding.
"
)
VSC_F
(
fetch_close
,
uint64_t
,
1
,
'
a
'
,
VSC_F
(
fetch_close
,
uint64_t
,
1
,
'
c
'
,
"Fetch wanted close"
,
""
"
beresp with EOF due to Connection: Close.
"
)
VSC_F
(
fetch_oldhttp
,
uint64_t
,
1
,
'
a
'
,
VSC_F
(
fetch_oldhttp
,
uint64_t
,
1
,
'
c
'
,
"Fetch pre HTTP/1.1 closed"
,
""
)
VSC_F
(
fetch_zero
,
uint64_t
,
1
,
'a'
,
"Fetch zero len"
,
""
"beresp with EOF due to HTTP < 1.1"
)
VSC_F
(
fetch_
failed
,
uint64_t
,
1
,
'a
'
,
"Fetch
failed
"
,
""
VSC_F
(
fetch_
zero
,
uint64_t
,
1
,
'c
'
,
"Fetch
zero len body
"
,
"
beresp with EOF due to keep-live but neither Chunked or Len.
"
)
VSC_F
(
fetch_1xx
,
uint64_t
,
1
,
'
a
'
,
VSC_F
(
fetch_1xx
,
uint64_t
,
1
,
'
c
'
,
"Fetch no body (1xx)"
,
""
"
beresp with no body because of 1XX response.
"
)
VSC_F
(
fetch_204
,
uint64_t
,
1
,
'
a
'
,
VSC_F
(
fetch_204
,
uint64_t
,
1
,
'
c
'
,
"Fetch no body (204)"
,
""
"
beresp with no body because of 204 response.
"
)
VSC_F
(
fetch_304
,
uint64_t
,
1
,
'
a
'
,
VSC_F
(
fetch_304
,
uint64_t
,
1
,
'
c
'
,
"Fetch no body (304)"
,
""
"beresp with no body because of 304 response."
)
VSC_F
(
fetch_failed
,
uint64_t
,
1
,
'c'
,
"Fetch body failed"
,
"beresp body fetch failed."
)
/*---------------------------------------------------------------------
...
...
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