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 2013/03/09 01:48:36 UTC
[28/50] git commit: TS-1559 Server side termination not handled
properly when a PluginVC/Protocol Plugin is used.
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/3.3.x
Commit: 4e3035eee617a8cd39d47d6c103cc8df48a02248
Parents: 8219283
Author: Yossi Gottlieb <yossigo at gmail dot com>
Authored: Thu Feb 28 18:21:59 2013 -0700
Committer: Leif Hedstrom <zw...@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();
}