Skip to content

Fix Multiplexer POST Body Handling#8439

Merged
bneradt merged 1 commit intoapache:masterfrom
bneradt:extend_multiplexer_test
Oct 25, 2021
Merged

Fix Multiplexer POST Body Handling#8439
bneradt merged 1 commit intoapache:masterfrom
bneradt:extend_multiplexer_test

Conversation

@bneradt
Copy link
Contributor

@bneradt bneradt commented Oct 19, 2021

The previous Multiplexer Plugin test only verified that the plugin would
load without error. This updates the test to verify it can multiplex to
multiple hosts, exercising both HTTP and HTTPS connections to the
multiplexed hosts.

While doing this, I added POST request method tests. This showed that
the plugin could not handle POST bodies and simply failed a
misconfigured assertion when the request body was processed. This change
also fixes that bug in the plugin.

@bneradt bneradt added this to the 10.0.0 milestone Oct 19, 2021
@bneradt bneradt self-assigned this Oct 19, 2021
@bneradt bneradt requested a review from bryancall as a code owner October 19, 2021 16:02
@bneradt bneradt force-pushed the extend_multiplexer_test branch from ae918b1 to 6249e51 Compare October 19, 2021 23:51
@bneradt bneradt changed the title Extend the Multiplexer Plugin Test Fix Multiplexer POST Body Handling Oct 20, 2021
@bneradt bneradt force-pushed the extend_multiplexer_test branch from 6249e51 to 9a0e94a Compare October 20, 2021 00:18
@SolidWallOfCode
Copy link
Member

Very nice. MultiplexerTest makes the test code much cleaner.

@bneradt bneradt force-pushed the extend_multiplexer_test branch from 9a0e94a to 4e36ff1 Compare October 22, 2021 23:06
The previous Multiplexer Plugin test only verified that the plugin would
load without error. This updates the test to verify it can multiplex to
multiple hosts, exercising both HTTP and HTTPS connections to the
multiplexed hosts.

While doing this, I added POST and PUT request method tests. This showed
that the plugin could not handle request bodies and simply failed a
misconfigured assertion when the request body was processed. This change
also fixes that bug in the plugin.
@bneradt bneradt force-pushed the extend_multiplexer_test branch from 4e36ff1 to eb288b9 Compare October 22, 2021 23:31
@bneradt bneradt merged commit 636d42a into apache:master Oct 25, 2021
@bneradt bneradt deleted the extend_multiplexer_test branch October 25, 2021 15:33
zwoop pushed a commit that referenced this pull request Nov 8, 2021
The previous Multiplexer Plugin test only verified that the plugin would
load without error. This updates the test to verify it can multiplex to
multiple hosts, exercising both HTTP and HTTPS connections to the
multiplexed hosts.

While doing this, I added POST and PUT request method tests. This showed
that the plugin could not handle request bodies and simply failed a
misconfigured assertion when the request body was processed. This change
also fixes that bug in the plugin.

(cherry picked from commit 636d42a)
@zwoop
Copy link
Contributor

zwoop commented Nov 8, 2021

Cherry-picked to v9.2.x

@zwoop zwoop modified the milestones: 10.0.0, 9.2.0 Nov 8, 2021
moonchen pushed a commit to moonchen/trafficserver that referenced this pull request Mar 17, 2022
* asf/9.2.x: (50 commits)
  Updated ChangeLog
  Reject Transfer-Encoding in pre-HTTP/1.1 requests (apache#8451)
  Better TLS Secrets Truncation. (apache#8489)
  ssl_secret debug printing: print only the first 50 bytes (apache#8483)
  Define TS_HTTP_VALUE_BROTLI and TS_HTTP_LEN_BROTLI (apache#8477)
  Fix case of brotli (apache#8476)
  TSSslSecretSet: Update SSL_CTX TLS Secrets (apache#8368)
  Adding doc/README.md (apache#8420)
  Doc: fix typos in Strategy documentation (apache#8408)
  Refactors and promotes the Txn Control mechanism with Get() and Set() (apache#8428)
  tests: Add shbang to python scripts with a main (apache#8430)
  Remove empty tests/unit_tests directoy+makefile (apache#8429)
  Adds new API: TSVConnSslSniGet (apache#8313)
  rate_limit: convert to using TSVConnSslSniGet (apache#8414)
  Update the Multiplexer Docs for Multplexed HTTPS Connections (apache#8440)
  bigobj: use automake to build test utilities (apache#8441)
  Make sni.yaml errors cause an unrecoverable TS crash at startup. (apache#8208)
  Fix timeout checks of NetHandler::manage_active_queue() (apache#8287)
  Fix Multiplexer POST/PUT Body Handling (apache#8439)
  Document proxy.config.memory.max_usage (apache#8450)
  ...
bryancall pushed a commit that referenced this pull request Jun 14, 2022
The previous Multiplexer Plugin test only verified that the plugin would
load without error. This updates the test to verify it can multiplex to
multiple hosts, exercising both HTTP and HTTPS connections to the
multiplexed hosts.

While doing this, I added POST and PUT request method tests. This showed
that the plugin could not handle request bodies and simply failed a
misconfigured assertion when the request body was processed. This change
also fixes that bug in the plugin.

(cherry picked from commit 636d42a)
@bryancall bryancall modified the milestones: 9.2.0, 9.1.3 Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants