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
5335c721
Commit
5335c721
authored
Mar 19, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have listen_socks tell what session step to go to after accept.
parent
ba34fd3a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
cache.h
bin/varnishd/cache/cache.h
+0
-6
common.h
bin/varnishd/common/common.h
+6
-0
heritage.h
bin/varnishd/common/heritage.h
+1
-0
mgt_acceptor.c
bin/varnishd/mgt/mgt_acceptor.c
+1
-0
steps.h
include/tbl/steps.h
+1
-0
No files found.
bin/varnishd/cache/cache.h
View file @
5335c721
...
...
@@ -139,12 +139,6 @@ typedef struct {
/*--------------------------------------------------------------------*/
enum
sess_step
{
#define SESS_STEP(l, u) S_STP_##u,
#include "tbl/steps.h"
#undef SESS_STEP
};
enum
req_step
{
#define REQ_STEP(l, u, arg) R_STP_##u,
#include "tbl/steps.h"
...
...
bin/varnishd/common/common.h
View file @
5335c721
...
...
@@ -62,6 +62,12 @@ enum obj_flags {
#undef OBJ_FLAG
};
enum
sess_step
{
#define SESS_STEP(l, u) S_STP_##u,
#include "tbl/steps.h"
#undef SESS_STEP
};
struct
cli
;
/**********************************************************************
...
...
bin/varnishd/common/heritage.h
View file @
5335c721
...
...
@@ -39,6 +39,7 @@ struct listen_sock {
int
sock
;
const
char
*
name
;
const
struct
suckaddr
*
addr
;
enum
sess_step
first_step
;
};
VTAILQ_HEAD
(
listen_sock_head
,
listen_sock
);
...
...
bin/varnishd/mgt/mgt_acceptor.c
View file @
5335c721
...
...
@@ -132,6 +132,7 @@ mac_callback(void *priv, const struct suckaddr *sa)
AN
(
ls
);
ls
->
sock
=
-
1
;
ls
->
addr
=
sa
;
ls
->
first_step
=
S_STP_H1NEWSESS
;
fail
=
mac_opensocket
(
ls
,
NULL
);
if
(
ls
->
sock
<
0
)
{
*
(
mh
->
err
)
=
strerror
(
fail
);
...
...
include/tbl/steps.h
View file @
5335c721
...
...
@@ -31,6 +31,7 @@
/*lint -save -e525 -e539 */
#ifdef SESS_STEP
SESS_STEP
(
h1newsess
,
H1NEWSESS
)
SESS_STEP
(
h1newreq
,
H1NEWREQ
)
SESS_STEP
(
h1working
,
H1WORKING
)
#endif
...
...
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