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
31a65a99
Commit
31a65a99
authored
Jun 02, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Storage allocation failues happen, let other code deal with it.
Fixes #927
parent
cdda8895
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
cache_esi_fetch.c
bin/varnishd/cache_esi_fetch.c
+1
-1
stevedore.c
bin/varnishd/stevedore.c
+2
-1
No files found.
bin/varnishd/cache_esi_fetch.c
View file @
31a65a99
...
@@ -371,7 +371,7 @@ vfp_esi_end(struct sess *sp)
...
@@ -371,7 +371,7 @@ vfp_esi_end(struct sess *sp)
assert
(
l
>
0
);
assert
(
l
>
0
);
/* XXX: This is a huge waste of storage... */
/* XXX: This is a huge waste of storage... */
sp
->
obj
->
esidata
=
STV_alloc
(
sp
,
l
);
sp
->
obj
->
esidata
=
STV_alloc
(
sp
,
l
);
AN
(
sp
->
obj
->
esidata
);
XXX
AN
(
sp
->
obj
->
esidata
);
memcpy
(
sp
->
obj
->
esidata
->
ptr
,
VSB_data
(
vsb
),
l
);
memcpy
(
sp
->
obj
->
esidata
->
ptr
,
VSB_data
(
vsb
),
l
);
sp
->
obj
->
esidata
->
len
=
l
;
sp
->
obj
->
esidata
->
len
=
l
;
VSB_delete
(
vsb
);
VSB_delete
(
vsb
);
...
...
bin/varnishd/stevedore.c
View file @
31a65a99
...
@@ -191,6 +191,7 @@ stv_alloc(const struct sess *sp, size_t size)
...
@@ -191,6 +191,7 @@ stv_alloc(const struct sess *sp, size_t size)
if
(
++
fail
==
50
)
/* XXX Param */
if
(
++
fail
==
50
)
/* XXX Param */
break
;
break
;
}
}
if
(
st
!=
NULL
)
CHECK_OBJ_NOTNULL
(
st
,
STORAGE_MAGIC
);
CHECK_OBJ_NOTNULL
(
st
,
STORAGE_MAGIC
);
return
(
st
);
return
(
st
);
}
}
...
...
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