This is an automated email from the ASF dual-hosted git repository.
vmamidi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new c99d010 Cached object should not be removed when write is aborted
c99d010 is described below
commit c99d010ac0d227f0c018e45f886c2ce6f0d24517
Author: Vijay Mamidi <[email protected]>
AuthorDate: Tue Jul 31 14:31:44 2018 -0700
Cached object should not be removed when write is aborted
---
proxy/http/HttpCacheSM.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxy/http/HttpCacheSM.h b/proxy/http/HttpCacheSM.h
index f1d8872..435279f 100644
--- a/proxy/http/HttpCacheSM.h
+++ b/proxy/http/HttpCacheSM.h
@@ -142,7 +142,7 @@ public:
{
if (cache_read_vc) {
HTTP_DECREMENT_DYN_STAT(http_current_cache_connections_stat);
- cache_read_vc->do_io_close(); // abort
+ cache_read_vc->do_io_close(0); // passing zero as aborting read is not
an error
cache_read_vc = nullptr;
}
}
@@ -151,7 +151,7 @@ public:
{
if (cache_write_vc) {
HTTP_DECREMENT_DYN_STAT(http_current_cache_connections_stat);
- cache_write_vc->do_io_close(); // abort
+ cache_write_vc->do_io_close(0); // passing zero as aborting write is not
an error
cache_write_vc = nullptr;
}
}