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 2021/04/10 22:01:47 UTC

[trafficserver] branch 9.1.x updated: Add close header normalize openclose test (#7679)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.1.x by this push:
     new 80e5280  Add close header normalize openclose test (#7679)
80e5280 is described below

commit 80e52808174507c8e939a3ed07081950d94c37fa
Author: Susan Hinrichs <sh...@verizonmedia.com>
AuthorDate: Tue Apr 6 08:42:03 2021 -0500

    Add close header normalize openclose test (#7679)
    
    (cherry picked from commit 8c41978e66cb687da64218a1d84ede10c0f8654f)
---
 tests/gold_tests/continuations/openclose.test.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/gold_tests/continuations/openclose.test.py b/tests/gold_tests/continuations/openclose.test.py
index 2473452..269de16 100644
--- a/tests/gold_tests/continuations/openclose.test.py
+++ b/tests/gold_tests/continuations/openclose.test.py
@@ -51,7 +51,8 @@ ts.Disk.remap_config.AddLine(
         ts.Variables.port, server.Variables.Port)
 )
 
-cmd = 'curl -vs -H "host:oc.test" http://127.0.0.1:{0}'.format(ts.Variables.port)
+# Add connection close to ensure that the client connection closes promptly after completing the transaction
+cmd = 'curl -H "Connection: close" -vs -H "host:oc.test" http://127.0.0.1:{0}'.format(ts.Variables.port)
 numberOfRequests = 100
 
 tr = Test.AddTestRun()