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
aff259bc
Commit
aff259bc
authored
Oct 12, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move struct vbc to cache_backend.h
parent
e97567d4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
35 deletions
+39
-35
cache.h
bin/varnishd/cache.h
+14
-35
cache_backend.h
bin/varnishd/cache_backend.h
+22
-0
cache_cli.c
bin/varnishd/cache_cli.c
+1
-0
cache_fetch.c
bin/varnishd/cache_fetch.c
+1
-0
cache_pipe.c
bin/varnishd/cache_pipe.c
+1
-0
No files found.
bin/varnishd/cache.h
View file @
aff259bc
...
...
@@ -91,26 +91,27 @@ enum {
HTTP_HDR_FIRST
,
};
struct
iovec
;
struct
SHA256Context
;
struct
VSC_C_lck
;
struct
ban
;
struct
busyobj
;
struct
cli
;
struct
exp
;
struct
vsb
;
struct
sess
;
struct
cli_proto
;
struct
director
;
struct
exp
;
struct
iovec
;
struct
objcore
;
struct
object
;
struct
objhead
;
struct
objcore
;
struct
busyobj
;
struct
storage
;
struct
pool
;
struct
sess
;
struct
sesspool
;
struct
storage
;
struct
vbc
;
struct
vef_priv
;
struct
vrt_backend
;
struct
cli_proto
;
struct
ban
;
struct
SHA256Context
;
struct
VSC_C_lck
;
struct
vsb
;
struct
waitinglist
;
struct
vef_priv
;
struct
pool
;
#define DIGEST_LEN 32
...
...
@@ -627,28 +628,6 @@ struct sess {
#endif
};
/* -------------------------------------------------------------------*/
/* Backend connection */
struct
vbc
{
unsigned
magic
;
#define VBC_MAGIC 0x0c5e6592
VTAILQ_ENTRY
(
vbc
)
list
;
struct
backend
*
backend
;
struct
vdi_simple
*
vdis
;
unsigned
vsl_id
;
int
fd
;
struct
sockaddr_storage
*
addr
;
socklen_t
addrlen
;
uint8_t
recycled
;
/* Timeouts */
double
first_byte_timeout
;
double
between_bytes_timeout
;
};
/* Prototypes etc ----------------------------------------------------*/
/* cache_acceptor.c */
...
...
bin/varnishd/cache_backend.h
View file @
aff259bc
...
...
@@ -134,6 +134,28 @@ struct backend {
struct
VSC_C_vbe
*
vsc
;
};
/* -------------------------------------------------------------------*/
/* Backend connection */
struct
vbc
{
unsigned
magic
;
#define VBC_MAGIC 0x0c5e6592
VTAILQ_ENTRY
(
vbc
)
list
;
struct
backend
*
backend
;
struct
vdi_simple
*
vdis
;
unsigned
vsl_id
;
int
fd
;
struct
sockaddr_storage
*
addr
;
socklen_t
addrlen
;
uint8_t
recycled
;
/* Timeouts */
double
first_byte_timeout
;
double
between_bytes_timeout
;
};
/* cache_backend.c */
void
VBE_ReleaseConn
(
struct
vbc
*
vc
);
struct
backend
*
vdi_get_backend_if_simple
(
const
struct
director
*
d
);
...
...
bin/varnishd/cache_cli.c
View file @
aff259bc
...
...
@@ -40,6 +40,7 @@
#include "cache.h"
#include "cache_backend.h" // struct vbc
#include "hash_slinger.h" // objhead
#include "vcli.h"
#include "vcli_common.h"
...
...
bin/varnishd/cache_fetch.c
View file @
aff259bc
...
...
@@ -36,6 +36,7 @@
#include "cache.h"
#include "cache_backend.h"
#include "vcli_priv.h"
#include "vct.h"
#include "vtcp.h"
...
...
bin/varnishd/cache_pipe.c
View file @
aff259bc
...
...
@@ -36,6 +36,7 @@
#include "cache.h"
#include "cache_backend.h"
#include "vtcp.h"
#include "vtim.h"
...
...
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