trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [1/2] git commit: TS-1559 Server side termination not handled properly when a PluginVC/Protocol Plugin is used.
Date Fri, 01 Mar 2013 01:24:01 GMT
TS-1559 Server side termination not handled properly when a PluginVC/Protocol Plugin is used.


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

Branch: refs/heads/master
Commit: 4e3035eee617a8cd39d47d6c103cc8df48a02248
Parents: 8219283
Author: Yossi Gottlieb <yossigo at gmail dot com>
Authored: Thu Feb 28 18:21:59 2013 -0700
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Thu Feb 28 18:21:59 2013 -0700

----------------------------------------------------------------------
 proxy/http/HttpSM.cc |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4e3035ee/proxy/http/HttpSM.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 398b5d8..4159628 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -3508,6 +3508,11 @@ HttpSM::tunnel_handler_ssl_consumer(int event, HttpTunnelConsumer *
c)
     c->write_success = true;
     if (c->self_producer->alive == true) {
       c->vc->do_io_shutdown(IO_SHUTDOWN_WRITE);
+      if (!c->producer->alive) {
+        tunnel.close_vc(c);
+        tunnel.local_finish_all(c->self_producer);
+        break;
+      }
     } else {
       c->vc->do_io_close();
     }


Mime
View raw message