You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2014/09/22 15:51:33 UTC

git commit: TS-3084: Fix a comment, const correctness.

Repository: trafficserver
Updated Branches:
  refs/heads/master 42416b3f4 -> 1d5364616


TS-3084: Fix a comment, const correctness.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/1d536461
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/1d536461
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/1d536461

Branch: refs/heads/master
Commit: 1d536461617b344a092a290649bc28f7ff8030e5
Parents: 42416b3
Author: Susan Hinrichs <sh...@network-geographics.com>
Authored: Mon Sep 22 08:50:45 2014 -0500
Committer: Alan M. Carroll <am...@apache.org>
Committed: Mon Sep 22 08:50:45 2014 -0500

----------------------------------------------------------------------
 proxy/http/HttpClientSession.h | 2 +-
 proxy/http/HttpTunnel.cc       | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1d536461/proxy/http/HttpClientSession.h
----------------------------------------------------------------------
diff --git a/proxy/http/HttpClientSession.h b/proxy/http/HttpClientSession.h
index 7da29d9..c3f5a9c 100644
--- a/proxy/http/HttpClientSession.h
+++ b/proxy/http/HttpClientSession.h
@@ -72,7 +72,7 @@ public:
   void new_transaction();
 
   void set_half_close_flag() { half_close = true; };
-  bool get_half_close_flag() { return half_close; };
+  bool get_half_close_flag() const { return half_close; };
   virtual void release(IOBufferReader * r);
   NetVConnection *get_netvc() const { return client_vc;  };
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1d536461/proxy/http/HttpTunnel.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTunnel.cc b/proxy/http/HttpTunnel.cc
index f6f77c8..b7ee202 100644
--- a/proxy/http/HttpTunnel.cc
+++ b/proxy/http/HttpTunnel.cc
@@ -891,9 +891,9 @@ HttpTunnel::producer_run(HttpTunnelProducer * p)
       c->write_vio = NULL;
       consumer_handler(VC_EVENT_WRITE_COMPLETE, c);
     } else {
-      // In the client half close case, all the buffer that will be
-      // sent from the client is already in the buffer.  Go ahead and
-      // set the amount to read since we know it.  We will send the FIN
+      // In the client half close case, all the data that will be sent
+      // from the client is already in the buffer.  Go ahead and set
+      // the amount to read since we know it.  We will forward the FIN
       // to the server on VC_EVENT_WRITE_COMPLETE.
       if (p->vc_type == HT_HTTP_CLIENT) {
         HttpClientSession* ua_vc = static_cast<HttpClientSession*>(p->vc);