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
a6419c8a
Commit
a6419c8a
authored
Jul 31, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix HTC_Reinit() return type
parent
5536bb31
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
cache.h
bin/varnishd/cache/cache.h
+1
-1
cache_center.c
bin/varnishd/cache/cache_center.c
+1
-3
cache_httpconn.c
bin/varnishd/cache/cache_httpconn.c
+1
-1
No files found.
bin/varnishd/cache/cache.h
View file @
a6419c8a
...
...
@@ -881,7 +881,7 @@ enum htc_status_e {
void
HTC_Init
(
struct
http_conn
*
htc
,
struct
ws
*
ws
,
int
fd
,
struct
vsl_log
*
,
unsigned
maxbytes
,
unsigned
maxhdr
);
int
HTC_Reinit
(
struct
http_conn
*
htc
);
enum
htc_status_e
HTC_Reinit
(
struct
http_conn
*
htc
);
enum
htc_status_e
HTC_Rx
(
struct
http_conn
*
htc
);
ssize_t
HTC_Read
(
struct
http_conn
*
htc
,
void
*
d
,
size_t
len
);
enum
htc_status_e
HTC_Complete
(
struct
http_conn
*
htc
);
...
...
bin/varnishd/cache/cache_center.c
View file @
a6419c8a
...
...
@@ -204,7 +204,6 @@ enum cnt_sess_done_ret {
static
enum
cnt_sess_done_ret
cnt_sess_done
(
struct
sess
*
sp
,
struct
worker
*
wrk
,
struct
req
*
req
)
{
int
i
;
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
...
...
@@ -258,8 +257,7 @@ cnt_sess_done(struct sess *sp, struct worker *wrk, struct req *req)
WS_Reset
(
wrk
->
aws
,
NULL
);
req
->
vxid
=
VXID_Get
(
&
wrk
->
vxid_pool
);
i
=
HTC_Reinit
(
req
->
htc
);
if
(
i
==
1
)
{
if
(
HTC_Reinit
(
req
->
htc
)
==
HTC_COMPLETE
)
{
req
->
t_req
=
sp
->
t_idle
;
wrk
->
stats
.
sess_pipeline
++
;
return
(
SESS_DONE_RET_START
);
...
...
bin/varnishd/cache/cache_httpconn.c
View file @
a6419c8a
...
...
@@ -75,7 +75,7 @@ HTC_Init(struct http_conn *htc, struct ws *ws, int fd, struct vsl_log *vsl,
* the ws somewhere, because WS_Reset only fiddles pointers.
*/
int
enum
htc_status_e
HTC_Reinit
(
struct
http_conn
*
htc
)
{
unsigned
l
;
...
...
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