You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2021/04/07 15:03:17 UTC
[trafficserver] branch 9.0.x updated: Fix
has_consumer_besides_client to deal with no clients (#7685)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 748a7e0 Fix has_consumer_besides_client to deal with no clients (#7685)
748a7e0 is described below
commit 748a7e062d1a743011cdc6020ff842da04a9ce91
Author: Susan Hinrichs <sh...@verizonmedia.com>
AuthorDate: Tue Apr 6 08:41:12 2021 -0500
Fix has_consumer_besides_client to deal with no clients (#7685)
(cherry picked from commit 09e72839258a4f748aace4908c996e843e6d5176)
---
proxy/http/HttpTunnel.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy/http/HttpTunnel.h b/proxy/http/HttpTunnel.h
index 7774e2c..73842b1 100644
--- a/proxy/http/HttpTunnel.h
+++ b/proxy/http/HttpTunnel.h
@@ -521,7 +521,7 @@ HttpTunnel::has_cache_writer() const
inline bool
HttpTunnel::has_consumer_besides_client() const
{
- bool res = true;
+ bool res = false; // case of no consumers
for (const auto &consumer : consumers) {
if (!consumer.alive) {