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
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
Show 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);
...
@@ -767,7 +767,7 @@ void VBO_Free(struct busyobj **vbo);
/* cache_http1_fsm.c [HTTP1] */
/* cache_http1_fsm.c [HTTP1] */
void
HTTP1_Session
(
struct
worker
*
,
struct
req
*
);
void
HTTP1_Session
(
struct
worker
*
,
struct
req
*
);
/* cache_req_fsm.c [
FSM
] */
/* cache_req_fsm.c [
CNT
] */
int
CNT_Request
(
struct
worker
*
,
struct
req
*
);
int
CNT_Request
(
struct
worker
*
,
struct
req
*
);
void
CNT_Init
(
void
);
void
CNT_Init
(
void
);
...
...
bin/varnishd/cache/cache_req_fsm.c
View file @
27f24b57
...
@@ -26,13 +26,8 @@
...
@@ -26,13 +26,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* SUCH DAMAGE.
*
*
* This file contains the two central state machine for pushing
* This file contains the two central state machine for pushing HTTP
* sessions and requests.
* requests through their paces.
*
* 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.
*
*
* The second part of the file, entrypoint CNT_Request() and below the
* The second part of the file, entrypoint CNT_Request() and below the
* ==== separator, is intended to (over time) be(ome) protocol agnostic.
* ==== separator, is intended to (over time) be(ome) protocol agnostic.
...
@@ -46,7 +41,7 @@
...
@@ -46,7 +41,7 @@
* a dot(1) graph in the source code comments. So to see the big picture,
* 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
* extract the DOT lines and run though dot(1), for instance with the
* command:
* 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"
...
@@ -61,7 +56,7 @@ DOT label="Request received"
DOT ]
DOT ]
DOT ERROR [shape=plaintext]
DOT ERROR [shape=plaintext]
DOT RESTART [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"
#include "config.h"
...
@@ -1284,7 +1279,7 @@ CNT_Request(struct worker *wrk, struct req *req)
...
@@ -1284,7 +1279,7 @@ CNT_Request(struct worker *wrk, struct req *req)
assert
(
assert
(
req
->
req_step
==
R_STP_LOOKUP
||
req
->
req_step
==
R_STP_LOOKUP
||
req
->
req_step
==
R_STP_START
||
req
->
req_step
==
R_STP_START
||
req
->
req_step
==
R_STP_RECV
);
req
->
req_step
==
R_STP_RECV
);
// from ESI
req
->
wrk
=
wrk
;
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