diff --git a/tests/gold_tests/post_slow_server/gold/post_slow_server_max_requests_in_0_stderr.gold b/tests/gold_tests/post_slow_server/gold/post_slow_server_max_requests_in_0_stderr.gold
new file mode 100644
index 00000000000..0d5e92cc8ed
--- /dev/null
+++ b/tests/gold_tests/post_slow_server/gold/post_slow_server_max_requests_in_0_stderr.gold
@@ -0,0 +1,5 @@
+``
+> POST / HTTP/1.1
+``
+< HTTP/1.1 502 Broken pipe
+``
diff --git a/tests/gold_tests/post_slow_server/gold/post_slow_server_max_requests_in_0_stdout.gold b/tests/gold_tests/post_slow_server/gold/post_slow_server_max_requests_in_0_stdout.gold
new file mode 100644
index 00000000000..aff210ee07a
--- /dev/null
+++ b/tests/gold_tests/post_slow_server/gold/post_slow_server_max_requests_in_0_stdout.gold
@@ -0,0 +1,14 @@
+
+
+Could Not Connect
+
+
+
+Could Not Connect
+
+
+
+Description: Could not connect to the requested server host.
+
+
+
diff --git a/tests/gold_tests/post_slow_server/post_slow_server_max_requests_in.test.py b/tests/gold_tests/post_slow_server/post_slow_server_max_requests_in.test.py
new file mode 100644
index 00000000000..f07d924b2f3
--- /dev/null
+++ b/tests/gold_tests/post_slow_server/post_slow_server_max_requests_in.test.py
@@ -0,0 +1,74 @@
+'''
+'''
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from enum import Enum
+
+Test.Summary = 'Exercise POST request with max_requests_in'
+Test.ContinueOnFail = True
+
+
+class PostAndMaxRequestsInTest:
+ """
+ Cover #8273 - Make sure inbound side inactive timeout doesn't happens during outbound side TLS handshake
+ """
+
+ def __init__(self):
+ self.__setupOriginServer()
+ self.__setupTS()
+
+ def __setupOriginServer(self):
+ Test.GetTcpPort("server_port")
+ self.origin_server = Test.Processes.Process(
+ "server", "bash -c '" + Test.TestDirectory + "/server.sh {}'".format(Test.Variables.server_port)
+ )
+
+ def __setupTS(self):
+ self.ts = Test.MakeATSProcess("ts", select_ports=True)
+
+ self.ts.Disk.records_config.update({
+ "proxy.config.http.server_ports": f"{self.ts.Variables.port}",
+ "proxy.config.net.max_requests_in": 1000,
+ 'proxy.config.http.connect_attempts_timeout': 1,
+ "proxy.config.diags.debug.enabled": 1,
+ "proxy.config.diags.debug.tags": "http|socket|v_net_queue",
+ })
+
+ self.ts.Disk.remap_config.AddLines([
+ f"map / https://127.0.0.1:{Test.Variables.server_port}/",
+ ])
+
+ def __testCase0(self):
+ """
+ - POST request
+ - Outbound side TLS Handshake hits connect_attempts_timeout
+ - Client gets 502
+ """
+ tr = Test.AddTestRun()
+ tr.Processes.Default.StartBefore(self.origin_server)
+ tr.Processes.Default.StartBefore(self.ts)
+ tr.Processes.Default.Command = f"curl -X POST --http1.1 -vs http://127.0.0.1:{self.ts.Variables.port}/ --data key=value"
+ tr.Processes.Default.ReturnCode = 0
+ tr.Processes.Default.Streams.stdout = "gold/post_slow_server_max_requests_in_0_stdout.gold"
+ tr.Processes.Default.Streams.stderr = "gold/post_slow_server_max_requests_in_0_stderr.gold"
+ tr.StillRunningAfter = self.ts
+
+ def run(self):
+ self.__testCase0()
+
+
+PostAndMaxRequestsInTest().run()