trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shinr...@apache.org
Subject [trafficserver] branch master updated: Fix double test flakiness due to EOS/TXN_CLOSE race (#7956)
Date Mon, 21 Jun 2021 13:28:33 GMT
This is an automated email from the ASF dual-hosted git repository.

shinrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new fc703a6  Fix double test flakiness due to EOS/TXN_CLOSE race (#7956)
fc703a6 is described below

commit fc703a63d1cd90c5398c05092baf8774ebd98162
Author: Susan Hinrichs <shinrich@verizonmedia.com>
AuthorDate: Mon Jun 21 08:28:22 2021 -0500

    Fix double test flakiness due to EOS/TXN_CLOSE race (#7956)
---
 proxy/http/Http1ClientTransaction.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/proxy/http/Http1ClientTransaction.cc b/proxy/http/Http1ClientTransaction.cc
index 337f2c5..128b90d 100644
--- a/proxy/http/Http1ClientTransaction.cc
+++ b/proxy/http/Http1ClientTransaction.cc
@@ -28,6 +28,10 @@
 void
 Http1ClientTransaction::release()
 {
+  // Turn off reading until we are done with the SM
+  // At that point the transaction/session with either be closed
+  // or be put into keep alive state to wait from the next transaction
+  this->do_io_read(this, 0, nullptr);
   _proxy_ssn->clear_session_active();
 }
 

Mime
View raw message