projects
/
trafficserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc4a3c8
)
fix-segfault
author
Jean Baptiste Favre
<debian@jbfavre.org>
Sat, 24 Aug 2019 07:00:22 +0000
(08:00 +0100)
committer
Emanuele Rocca
<ema@debian.org>
Sat, 24 Aug 2019 07:00:22 +0000
(08:00 +0100)
Gbp-Pq: Name 0011-fix-segfault.patch
iocore/cache/CachePages.cc
patch
|
blob
|
history
diff --git
a/iocore/cache/CachePages.cc
b/iocore/cache/CachePages.cc
index 4578c4b235cdde0d4f75e81141f74edf3060242f..089cb5908abb5d68471b0b767ed42f3a9546afac 100644
(file)
--- a/
iocore/cache/CachePages.cc
+++ b/
iocore/cache/CachePages.cc
@@
-337,6
+337,13
@@
ShowCache::handleCacheEvent(int event, Event *e)
CacheHTTPInfoVector *vec = &(cache_vc->vector);
int alt_count = vec->count();
if (alt_count) {
+ // check cache_vc->first_buf is NULL, response cache lookup busy.
+ if (cache_vc->first_buf == nullptr) {
+ cache_vc->do_io_close(-1);
+ CHECK_SHOW(show("<H3>Cache Lookup Busy, please try again</H3>\n"));
+ return complete(event, e);
+ }
+
Doc *d = (Doc *)(cache_vc->first_buf->data());
time_t t;
char tmpstr[4096];