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
5f25e696
Commit
5f25e696
authored
Apr 05, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When the completion function returns empty, reset the rxbuffer in
the central code, rather than the completion function.
parent
a7c85443
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
cache_session.c
bin/varnishd/cache/cache_session.c
+4
-1
cache_http1_proto.c
bin/varnishd/http1/cache_http1_proto.c
+2
-5
No files found.
bin/varnishd/cache/cache_session.c
View file @
5f25e696
...
@@ -269,7 +269,10 @@ SES_RxStuff(struct http_conn *htc, htc_complete_f *func,
...
@@ -269,7 +269,10 @@ SES_RxStuff(struct http_conn *htc, htc_complete_f *func,
/* Working on it */
/* Working on it */
if
(
t1
!=
NULL
&&
isnan
(
*
t1
))
if
(
t1
!=
NULL
&&
isnan
(
*
t1
))
*
t1
=
now
;
*
t1
=
now
;
}
else
if
(
hs
!=
HTC_S_EMPTY
)
}
else
if
(
hs
==
HTC_S_EMPTY
)
{
htc
->
rxbuf_e
=
htc
->
rxbuf_b
;
*
htc
->
rxbuf_e
=
'\0'
;
}
else
WRONG
(
"htc_status_e"
);
WRONG
(
"htc_status_e"
);
tmo
=
tn
-
now
;
tmo
=
tn
-
now
;
...
...
bin/varnishd/http1/cache_http1_proto.c
View file @
5f25e696
...
@@ -75,12 +75,9 @@ HTTP1_Complete(struct http_conn *htc)
...
@@ -75,12 +75,9 @@ HTTP1_Complete(struct http_conn *htc)
/* Skip any leading white space */
/* Skip any leading white space */
for
(
p
=
htc
->
rxbuf_b
;
vct_islws
(
*
p
);
p
++
)
for
(
p
=
htc
->
rxbuf_b
;
vct_islws
(
*
p
);
p
++
)
continue
;
continue
;
if
(
p
==
htc
->
rxbuf_e
)
{
if
(
p
==
htc
->
rxbuf_e
)
/* All white space */
htc
->
rxbuf_e
=
htc
->
rxbuf_b
;
*
htc
->
rxbuf_e
=
'\0'
;
return
(
HTC_S_EMPTY
);
return
(
HTC_S_EMPTY
);
}
/*
/*
* Here we just look for NL[CR]NL to see that reception
* Here we just look for NL[CR]NL to see that reception
* is completed. More stringent validation happens later.
* is completed. More stringent validation happens later.
...
...
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