Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TS_HTTP_REQUEST_TRANSFORM_HOOK Tunnel Processing #9724

Conversation

bneradt
Copy link
Contributor

@bneradt bneradt commented May 21, 2023

This fixes a bug in client request processing for transform tunnels. Without this fix, the transform request tunnel was not created for requests with a body which made it so that request transform plugins were not dispatched to for the various events concerning requests with a body.

This fixes a bug in client request processing for transform tunnels.
Without this fix, the transform request tunnel was not created for
requests with a body which made it so that request transform plugins
were not dispatched to for the various events concerning requests with a
body.
@bneradt bneradt added this to the 10.0.0 milestone May 21, 2023
@bneradt bneradt self-assigned this May 21, 2023
server_txn->has_request_body(t_state.hdr_info.response_content_length,
t_state.server_info.transfer_encoding == HttpTransact::CHUNKED_ENCODING) &&
server_txn->has_request_body(t_state.hdr_info.request_content_length,
t_state.client_info.transfer_encoding == HttpTransact::CHUNKED_ENCODING) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. That's a typo kind of mistake here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly. It was likely a copy and paste mistake when things got shifted around for HTTP/2 to origin. Thankfully it's an easy fix.

@bryancall bryancall requested a review from SolidWallOfCode May 22, 2023 22:04
@bneradt bneradt merged commit 6b84d6d into apache:master May 22, 2023
@bneradt bneradt deleted the fix_request_transform_hook_for_requests_with_bodies branch May 22, 2023 22:16
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jun 3, 2024
* asf/master:
  Fix Via header on H3 connections (apache#9758)
  Add ssrc and surc log fields for server simple/unavail retry counts. (apache#9694)
  Term standardization: dead/down server -> down server (apache#9582)
  Fix a crash caused by a HTTP/2 GET request with a body (apache#9738)
  Add configuration for UDP poll timeout (apache#9733)
  Fix quic_no_activity_timeout test (apache#9737)
  Updates to cmake install to get a running ATS from a fresh install (apache#9735)
  Make config.proxy.http.no_dns_just_forward_to_parent overridable (apache#9728)
  Fix a potential crash due to use-after-free on QUIC connections (apache#9715)
  Doc: Clarify that connect ports can have multiple values (apache#9713)
  Add BRAVO Reader-Writer Lock (apache#9394)
  Cleanup: Fix format of doc corruption message (apache#9725)
  Don't build traffic_quic command (apache#9726)
  Fix protocol version in request Via header (apache#9716)
  Fix TS_HTTP_REQUEST_TRANSFORM_HOOK Tunnel Processing (apache#9724)
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.

3 participants