Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
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
varnishevent3
Commits
0b06c851
Commit
0b06c851
authored
Jan 21, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replay of SVN r5764:
Retire the old ESI code.
parent
a48f5ed3
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1 addition
and
935 deletions
+1
-935
Makefile.am
bin/varnishd/Makefile.am
+0
-1
cache.h
bin/varnishd/cache.h
+0
-18
cache_center.c
bin/varnishd/cache_center.c
+0
-7
cache_esi.c
bin/varnishd/cache_esi.c
+0
-897
cache_esi_deliver.c
bin/varnishd/cache_esi_deliver.c
+1
-3
cache_esi_parse.c
bin/varnishd/cache_esi_parse.c
+0
-4
cache_hash.c
bin/varnishd/cache_hash.c
+0
-5
No files found.
bin/varnishd/Makefile.am
View file @
0b06c851
...
@@ -27,7 +27,6 @@ varnishd_SOURCES = \
...
@@ -27,7 +27,6 @@ varnishd_SOURCES = \
cache_dir_round_robin.c
\
cache_dir_round_robin.c
\
cache_esi_parse.c
\
cache_esi_parse.c
\
cache_esi_deliver.c
\
cache_esi_deliver.c
\
cache_esi.c
\
cache_expire.c
\
cache_expire.c
\
cache_fetch.c
\
cache_fetch.c
\
cache_gzip.c
\
cache_gzip.c
\
...
...
bin/varnishd/cache.h
View file @
0b06c851
...
@@ -35,8 +35,6 @@
...
@@ -35,8 +35,6 @@
*/
*/
#define VARNISH_CACHE_CHILD 1
#define VARNISH_CACHE_CHILD 1
#undef OLD_ESI
#include <sys/time.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <sys/uio.h>
#include <sys/socket.h>
#include <sys/socket.h>
...
@@ -94,9 +92,6 @@ struct objhead;
...
@@ -94,9 +92,6 @@ struct objhead;
struct
objcore
;
struct
objcore
;
struct
storage
;
struct
storage
;
struct
workreq
;
struct
workreq
;
#ifdef OLD_ESI
struct
esidata
;
#endif
struct
vrt_backend
;
struct
vrt_backend
;
struct
cli_proto
;
struct
cli_proto
;
struct
ban
;
struct
ban
;
...
@@ -444,11 +439,7 @@ struct object {
...
@@ -444,11 +439,7 @@ struct object {
VTAILQ_HEAD
(,
storage
)
store
;
VTAILQ_HEAD
(,
storage
)
store
;
#ifdef OLD_ESI
struct
esidata
*
esidata
;
#else
struct
storage
*
esidata
;
struct
storage
*
esidata
;
#endif
double
last_use
;
double
last_use
;
...
@@ -807,16 +798,7 @@ void VCL_Poll(void);
...
@@ -807,16 +798,7 @@ void VCL_Poll(void);
char
*
VRT_String
(
struct
ws
*
ws
,
const
char
*
h
,
const
char
*
p
,
va_list
ap
);
char
*
VRT_String
(
struct
ws
*
ws
,
const
char
*
h
,
const
char
*
p
,
va_list
ap
);
char
*
VRT_StringList
(
char
*
d
,
unsigned
dl
,
const
char
*
p
,
va_list
ap
);
char
*
VRT_StringList
(
char
*
d
,
unsigned
dl
,
const
char
*
p
,
va_list
ap
);
#ifdef OLD_ESI
/* cache_vrt_esi.c */
void
ESI_Deliver
(
struct
sess
*
);
void
ESI_Destroy
(
struct
object
*
);
void
ESI_Parse
(
struct
sess
*
);
#else
void
ESI_Deliver
(
struct
sess
*
);
void
ESI_Deliver
(
struct
sess
*
);
#endif
/* OLD_ESI */
void
ESI_Include
(
struct
sess
*
sp
,
const
char
*
src
,
const
char
*
host
);
/* cache_vrt_vmod.c */
/* cache_vrt_vmod.c */
void
VMOD_Init
(
void
);
void
VMOD_Init
(
void
);
...
...
bin/varnishd/cache_center.c
View file @
0b06c851
...
@@ -587,11 +587,9 @@ cnt_fetch(struct sess *sp)
...
@@ -587,11 +587,9 @@ cnt_fetch(struct sess *sp)
AZ
(
sp
->
wrk
->
vfp
);
AZ
(
sp
->
wrk
->
vfp
);
/* XXX: precedence, also: do_esi */
/* XXX: precedence, also: do_esi */
#ifndef OLD_ESI
if
(
sp
->
wrk
->
do_esi
)
{
if
(
sp
->
wrk
->
do_esi
)
{
sp
->
wrk
->
vfp
=
&
vfp_esi
;
sp
->
wrk
->
vfp
=
&
vfp_esi
;
}
else
}
else
#endif
if
(
sp
->
wrk
->
do_gunzip
&&
if
(
sp
->
wrk
->
do_gunzip
&&
http_HdrIs
(
sp
->
wrk
->
beresp
,
H_Content_Encoding
,
"gzip"
))
{
http_HdrIs
(
sp
->
wrk
->
beresp
,
H_Content_Encoding
,
"gzip"
))
{
http_Unset
(
sp
->
wrk
->
beresp
,
H_Content_Encoding
);
http_Unset
(
sp
->
wrk
->
beresp
,
H_Content_Encoding
);
...
@@ -677,11 +675,6 @@ cnt_fetch(struct sess *sp)
...
@@ -677,11 +675,6 @@ cnt_fetch(struct sess *sp)
return
(
0
);
return
(
0
);
}
}
#ifdef OLD_ESI
if
(
sp
->
wrk
->
do_esi
)
ESI_Parse
(
sp
);
#endif
switch
(
sp
->
handling
)
{
switch
(
sp
->
handling
)
{
case
VCL_RET_RESTART
:
case
VCL_RET_RESTART
:
HSH_Drop
(
sp
);
HSH_Drop
(
sp
);
...
...
bin/varnishd/cache_esi.c
View file @
0b06c851
This diff is collapsed.
Click to expand it.
bin/varnishd/cache_esi_deliver.c
View file @
0b06c851
...
@@ -44,7 +44,7 @@ SVNID("$Id")
...
@@ -44,7 +44,7 @@ SVNID("$Id")
/*--------------------------------------------------------------------*/
/*--------------------------------------------------------------------*/
void
static
void
ESI_Include
(
struct
sess
*
sp
,
const
char
*
src
,
const
char
*
host
)
ESI_Include
(
struct
sess
*
sp
,
const
char
*
src
,
const
char
*
host
)
{
{
struct
object
*
obj
;
struct
object
*
obj
;
...
@@ -120,7 +120,6 @@ ESI_Include(struct sess *sp, const char *src, const char *host)
...
@@ -120,7 +120,6 @@ ESI_Include(struct sess *sp, const char *src, const char *host)
/*--------------------------------------------------------------------*/
/*--------------------------------------------------------------------*/
#ifndef OLD_ESI
//#define Debug(fmt, ...) printf(fmt, __VA_ARGS__)
//#define Debug(fmt, ...) printf(fmt, __VA_ARGS__)
#define Debug(fmt, ...)
/**/
#define Debug(fmt, ...)
/**/
...
@@ -233,4 +232,3 @@ ESI_Deliver(struct sess *sp)
...
@@ -233,4 +232,3 @@ ESI_Deliver(struct sess *sp)
(
void
)
WRW_Flush
(
sp
->
wrk
);
(
void
)
WRW_Flush
(
sp
->
wrk
);
}
}
#endif
/* OLD_ESI */
bin/varnishd/cache_esi_parse.c
View file @
0b06c851
...
@@ -42,8 +42,6 @@ SVNID("$Id")
...
@@ -42,8 +42,6 @@ SVNID("$Id")
#include "zlib.h"
#include "zlib.h"
#include "stevedore.h"
#include "stevedore.h"
#ifndef OLD_ESI
//#define Debug(fmt, ...) printf(fmt, __VA_ARGS__)
//#define Debug(fmt, ...) printf(fmt, __VA_ARGS__)
#define Debug(fmt, ...)
/**/
#define Debug(fmt, ...)
/**/
...
@@ -1098,8 +1096,6 @@ struct vfp vfp_esi = {
...
@@ -1098,8 +1096,6 @@ struct vfp vfp_esi = {
.
end
=
vfp_esi_end
,
.
end
=
vfp_esi_end
,
};
};
#endif
/* OLD_ESI */
#if 0
#if 0
digraph xml {
digraph xml {
...
...
bin/varnishd/cache_hash.c
View file @
0b06c851
...
@@ -693,15 +693,10 @@ HSH_Deref(struct worker *w, struct objcore *oc, struct object **oo)
...
@@ -693,15 +693,10 @@ HSH_Deref(struct worker *w, struct objcore *oc, struct object **oo)
DSL
(
0x40
,
SLT_Debug
,
0
,
"Object %u workspace min free %u"
,
DSL
(
0x40
,
SLT_Debug
,
0
,
"Object %u workspace min free %u"
,
o
->
xid
,
WS_Free
(
o
->
ws_o
));
o
->
xid
,
WS_Free
(
o
->
ws_o
));
#ifdef OLD_ESI
if
(
o
->
esidata
!=
NULL
)
ESI_Destroy
(
o
);
#else
if
(
o
->
esidata
!=
NULL
)
{
if
(
o
->
esidata
!=
NULL
)
{
STV_free
(
o
->
esidata
);
STV_free
(
o
->
esidata
);
o
->
esidata
=
NULL
;
o
->
esidata
=
NULL
;
}
}
#endif
if
(
oc
!=
NULL
)
if
(
oc
!=
NULL
)
oc_freeobj
(
oc
);
oc_freeobj
(
oc
);
w
->
stats
.
n_object
--
;
w
->
stats
.
n_object
--
;
...
...
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