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
27f24b57
Commit
27f24b57
authored
Aug 07, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the dot graph of the request fsm
parent
1226479c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
cache.h
bin/varnishd/cache/cache.h
+1
-1
cache_req_fsm.c
bin/varnishd/cache/cache_req_fsm.c
+5
-10
No files found.
bin/varnishd/cache/cache.h
View file @
27f24b57
...
...
@@ -767,7 +767,7 @@ void VBO_Free(struct busyobj **vbo);
/* cache_http1_fsm.c [HTTP1] */
void
HTTP1_Session
(
struct
worker
*
,
struct
req
*
);
/* cache_req_fsm.c [
FSM
] */
/* cache_req_fsm.c [
CNT
] */
int
CNT_Request
(
struct
worker
*
,
struct
req
*
);
void
CNT_Init
(
void
);
...
...
bin/varnishd/cache/cache_req_fsm.c
View file @
27f24b57
...
...
@@ -26,13 +26,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* This file contains the two central state machine for pushing
* sessions and requests.
*
* The first part of the file, entrypoint CNT_Session() and down to
* the ==== separator, is concerned with sessions. When a session has
* a request to deal with, it calls into the second half of the file.
* This part is for all practical purposes HTTP/1.x specific.
* This file contains the two central state machine for pushing HTTP
* requests through their paces.
*
* The second part of the file, entrypoint CNT_Request() and below the
* ==== separator, is intended to (over time) be(ome) protocol agnostic.
...
...
@@ -46,7 +41,7 @@
* a dot(1) graph in the source code comments. So to see the big picture,
* extract the DOT lines and run though dot(1), for instance with the
* command:
* sed -n '/^DOT/s///p' cache/cache_
center
.c | dot -Tps > /tmp/_.ps
* sed -n '/^DOT/s///p' cache/cache_
req_fsm
.c | dot -Tps > /tmp/_.ps
*/
/*
...
...
@@ -61,7 +56,7 @@ DOT label="Request received"
DOT ]
DOT ERROR [shape=plaintext]
DOT RESTART [shape=plaintext]
DOT acceptor ->
firs
t [style=bold,color=green]
DOT acceptor ->
star
t [style=bold,color=green]
*/
#include "config.h"
...
...
@@ -1284,7 +1279,7 @@ CNT_Request(struct worker *wrk, struct req *req)
assert
(
req
->
req_step
==
R_STP_LOOKUP
||
req
->
req_step
==
R_STP_START
||
req
->
req_step
==
R_STP_RECV
);
req
->
req_step
==
R_STP_RECV
);
// from ESI
req
->
wrk
=
wrk
;
...
...
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