Repository: trafficserver
Updated Branches:
  refs/heads/master cb10484f3 -> a265c8ba4


[TS-3404]: Handle race condition in handling delayed terminating chunk

Send EOS to the read_side if PluginVC's write_side is in shutdown state
and no bytes are needed to be transferred


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

Branch: refs/heads/master
Commit: 9786ee8d66366512ac400c34c6dfc048e32d31fb
Parents: cb10484
Author: Sudheer Vinukonda <[email protected]>
Authored: Tue Feb 24 22:36:48 2015 +0000
Committer: Sudheer Vinukonda <[email protected]>
Committed: Tue Feb 24 22:36:48 2015 +0000

----------------------------------------------------------------------
 proxy/PluginVC.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9786ee8d/proxy/PluginVC.cc
----------------------------------------------------------------------
diff --git a/proxy/PluginVC.cc b/proxy/PluginVC.cc
index 2bed3f1..9754430 100644
--- a/proxy/PluginVC.cc
+++ b/proxy/PluginVC.cc
@@ -636,7 +636,7 @@ PluginVC::process_read_side(bool other_side_call)
   Debug("pvc", "[%u] %s: process_read_side; act_on %" PRId64"", core_obj->id, 
PVC_TYPE, act_on);
 
   if (act_on <= 0) {
-    if (other_side->closed || other_side->write_state.shutdown) {
+    if (other_side->closed || other_side->write_state.shutdown || 
write_state.shutdown) {
       read_state.vio._cont->handleEvent(VC_EVENT_EOS, &read_state.vio);
     }
     return;

Reply via email to