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
8e00aa82
Commit
8e00aa82
authored
Jan 21, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replay of SVN r5765
Minor cleanups
parent
0b06c851
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
cache_esi_deliver.c
bin/varnishd/cache_esi_deliver.c
+5
-7
cache_esi_parse.c
bin/varnishd/cache_esi_parse.c
+1
-0
No files found.
bin/varnishd/cache_esi_deliver.c
View file @
8e00aa82
...
...
@@ -25,6 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* VED - Varnish Esi Delivery
*/
#include "config.h"
...
...
@@ -45,7 +46,7 @@ SVNID("$Id")
/*--------------------------------------------------------------------*/
static
void
ESI_I
nclude
(
struct
sess
*
sp
,
const
char
*
src
,
const
char
*
host
)
ved_i
nclude
(
struct
sess
*
sp
,
const
char
*
src
,
const
char
*
host
)
{
struct
object
*
obj
;
struct
worker
*
w
;
...
...
@@ -125,7 +126,7 @@ ESI_Include(struct sess *sp, const char *src, const char *host)
#define Debug(fmt, ...)
/**/
static
void
esi
_sendchunk
(
const
struct
sess
*
sp
,
const
void
*
cb
,
ssize_t
cl
,
ved
_sendchunk
(
const
struct
sess
*
sp
,
const
void
*
cb
,
ssize_t
cl
,
const
void
*
ptr
,
ssize_t
l
)
{
...
...
@@ -197,11 +198,8 @@ ESI_Deliver(struct sess *sp)
assert
(
q
>
p
);
crc_ref
=
crc32
(
0L
,
Z_NULL
,
0
);
crc_ref
=
crc32
(
crc_ref
,
st
->
ptr
+
off
,
l
);
if
(
crc_ref
!=
crc
)
{
printf
(
"CRC Mismatch %08x %08x
\n
"
,
crc_ref
,
crc
);
}
xxxassert
(
crc_ref
==
crc
);
esi
_sendchunk
(
sp
,
p
,
q
-
p
,
st
->
ptr
+
off
,
l
);
ved
_sendchunk
(
sp
,
p
,
q
-
p
,
st
->
ptr
+
off
,
l
);
off
+=
l
;
p
=
q
+
1
;
break
;
...
...
@@ -220,7 +218,7 @@ ESI_Deliver(struct sess *sp)
r
=
(
void
*
)
strchr
((
const
char
*
)
q
,
'\0'
);
AN
(
r
);
Debug
(
"INCL [%s][%s] BEGIN
\n
"
,
q
,
p
);
ESI_I
nclude
(
sp
,
(
const
char
*
)
q
,
(
const
char
*
)
p
);
ved_i
nclude
(
sp
,
(
const
char
*
)
q
,
(
const
char
*
)
p
);
Debug
(
"INCL [%s][%s] END
\n
"
,
q
,
p
);
p
=
r
+
1
;
break
;
...
...
bin/varnishd/cache_esi_parse.c
View file @
8e00aa82
...
...
@@ -25,6 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* VEP Varnish Esi Parsing
*/
#include "config.h"
...
...
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