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
89558df4
Commit
89558df4
authored
Feb 20, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allocate the req early and VSL the SessionOpen there.
parent
efb159e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
cache_center.c
bin/varnishd/cache/cache_center.c
+9
-2
No files found.
bin/varnishd/cache/cache_center.c
View file @
89558df4
...
...
@@ -947,6 +947,13 @@ cnt_first(struct sess *sp, struct worker *wrk)
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
/* Allocate a request already now, so we can VSL to it */
SES_GetReq
(
sp
);
CHECK_OBJ_NOTNULL
(
sp
->
req
,
REQ_MAGIC
);
HTC_Init
(
sp
->
req
->
htc
,
sp
->
req
->
ws
,
sp
->
fd
,
sp
->
req
->
vsl
,
cache_param
->
http_req_size
,
cache_param
->
http_req_hdr_len
);
VTCP_name
(
&
sp
->
sockaddr
,
sp
->
sockaddrlen
,
sp
->
addr
,
sizeof
sp
->
addr
,
sp
->
port
,
sizeof
sp
->
port
);
if
(
cache_param
->
log_local_addr
)
{
...
...
@@ -955,11 +962,11 @@ cnt_first(struct sess *sp, struct worker *wrk)
VTCP_name
(
&
sp
->
mysockaddr
,
sp
->
mysockaddrlen
,
laddr
,
sizeof
laddr
,
lport
,
sizeof
lport
);
/* XXX: have no req yet */
VSLb
(
sp
->
wrk
->
vsl
,
SLT_SessionOpen
,
"%s %s %s %s"
,
VSLb
(
sp
->
req
->
vsl
,
SLT_SessionOpen
,
"%s %s %s %s"
,
sp
->
addr
,
sp
->
port
,
laddr
,
lport
);
}
else
{
/* XXX: have no req yet */
VSLb
(
sp
->
wrk
->
vsl
,
SLT_SessionOpen
,
"%s %s %s"
,
VSLb
(
sp
->
req
->
vsl
,
SLT_SessionOpen
,
"%s %s %s"
,
sp
->
addr
,
sp
->
port
,
sp
->
mylsock
->
name
);
}
...
...
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