TS-2509: add const qualifier to pure HttpTunnel member functions
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/0fc0820b Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/0fc0820b Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/0fc0820b Branch: refs/heads/5.0.x Commit: 0fc0820b5dfdd322aea465853ff9f446a475ba50 Parents: 9fda697 Author: James Peach <[email protected]> Authored: Thu Jan 16 14:51:10 2014 -0800 Committer: James Peach <[email protected]> Committed: Fri Jan 17 12:50:45 2014 -0800 ---------------------------------------------------------------------- CHANGES | 2 ++ proxy/http/HttpTunnel.h | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0fc0820b/CHANGES ---------------------------------------------------------------------- diff --git a/CHANGES b/CHANGES index be6efa7..0e40a80 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ -*- coding: utf-8 -*- Changes with Apache Traffic Server 4.2.0 + *) [TS-2509] Add the const qualifier to pure HttpTunnel member functions. + *) [TS-2508] Add a *highly* experimental escalation plugin. *) [TS-2507] Fix the state transition logging in HttpSM::handle_server_setup_error. http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0fc0820b/proxy/http/HttpTunnel.h ---------------------------------------------------------------------- diff --git a/proxy/http/HttpTunnel.h b/proxy/http/HttpTunnel.h index 2de633c..e4bdd71 100644 --- a/proxy/http/HttpTunnel.h +++ b/proxy/http/HttpTunnel.h @@ -297,9 +297,9 @@ public: void init(HttpSM * sm_arg, ProxyMutex * amutex); void reset(); void kill_tunnel(); - bool is_tunnel_active() { return active; } - bool is_tunnel_alive(); - bool has_cache_writer(); + bool is_tunnel_active() const { return active; } + bool is_tunnel_alive() const; + bool has_cache_writer() const; // YTS Team, yamsat Plugin void copy_partial_post_data(); @@ -419,7 +419,7 @@ HttpTunnel::chain_finish_all(HttpTunnelProducer * p) } inline bool -HttpTunnel::is_tunnel_alive() +HttpTunnel::is_tunnel_alive() const { bool tunnel_alive = false; @@ -498,7 +498,7 @@ HttpTunnel::append_message_to_producer_buffer(HttpTunnelProducer * p, const char } inline bool -HttpTunnel::has_cache_writer() +HttpTunnel::has_cache_writer() const { for (int i = 0; i < MAX_CONSUMERS; i++) { if (consumers[i].vc_type == HT_CACHE_WRITE && consumers[i].vc != NULL) {
