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
a1d91261
Commit
a1d91261
authored
Dec 23, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move another 8 bytes from sess to req
parent
f918ddbf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
cache.h
bin/varnishd/cache/cache.h
+1
-1
cache_center.c
bin/varnishd/cache/cache_center.c
+1
-1
cache_dir_random.c
bin/varnishd/cache/cache_dir_random.c
+2
-2
cache_vrt_var.c
bin/varnishd/cache/cache_vrt_var.c
+3
-3
No files found.
bin/varnishd/cache/cache.h
View file @
a1d91261
...
...
@@ -617,6 +617,7 @@ struct req {
double
t_resp
;
struct
http_conn
htc
[
1
];
char
*
client_identity
;
};
...
...
@@ -646,7 +647,6 @@ struct sess {
/* formatted ascii client address */
char
addr
[
ADDR_BUFSIZE
];
char
port
[
PORT_BUFSIZE
];
char
*
client_identity
;
VTAILQ_ENTRY
(
sess
)
poollist
;
struct
acct
acct_ses
;
...
...
bin/varnishd/cache/cache_center.c
View file @
a1d91261
...
...
@@ -1498,7 +1498,7 @@ cnt_recv(struct sess *sp)
sp
->
req
->
disable_esi
=
0
;
sp
->
req
->
hash_always_miss
=
0
;
sp
->
req
->
hash_ignore_busy
=
0
;
sp
->
client_identity
=
NULL
;
sp
->
req
->
client_identity
=
NULL
;
http_CollectHdr
(
sp
->
http
,
H_Cache_Control
);
...
...
bin/varnishd/cache/cache_dir_random.c
View file @
a1d91261
...
...
@@ -105,8 +105,8 @@ vdi_random_init_seed(const struct vdi_random *vs, const struct sess *sp)
switch
(
vs
->
criteria
)
{
case
c_client
:
if
(
sp
->
client_identity
!=
NULL
)
p
=
sp
->
client_identity
;
if
(
sp
->
req
->
client_identity
!=
NULL
)
p
=
sp
->
req
->
client_identity
;
else
p
=
sp
->
addr
;
retval
=
vdi_random_sha
(
p
,
strlen
(
p
));
...
...
bin/varnishd/cache/cache_vrt_var.c
View file @
a1d91261
...
...
@@ -209,8 +209,8 @@ const char * __match_proto__()
VRT_r_client_identity
(
struct
sess
*
sp
)
{
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
if
(
sp
->
client_identity
!=
NULL
)
return
(
sp
->
client_identity
);
if
(
sp
->
req
->
client_identity
!=
NULL
)
return
(
sp
->
req
->
client_identity
);
else
return
(
sp
->
addr
);
}
...
...
@@ -224,7 +224,7 @@ VRT_l_client_identity(struct sess *sp, const char *str, ...)
va_start
(
ap
,
str
);
b
=
VRT_String
(
sp
->
http
->
ws
,
NULL
,
str
,
ap
);
va_end
(
ap
);
sp
->
client_identity
=
b
;
sp
->
req
->
client_identity
=
b
;
}
/*--------------------------------------------------------------------*/
...
...
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