Skip to content

Comments

Traffic Dump: fix YAML format for CONNECT requests#9139

Merged
bneradt merged 1 commit intoapache:masterfrom
bneradt:fix_traffic_dump_for_http_connect
Oct 17, 2022
Merged

Traffic Dump: fix YAML format for CONNECT requests#9139
bneradt merged 1 commit intoapache:masterfrom
bneradt:fix_traffic_dump_for_http_connect

Conversation

@bneradt
Copy link
Contributor

@bneradt bneradt commented Oct 12, 2022

For CONNECT requests, Traffic Dump will not have a server-side protocol stack because we populate that on response from the server. Since the connection is left open for tunneling, it never gets populated. This resulted in mal-formed YAML because we had an empty string followed by a ','.

@bneradt bneradt added this to the 10.0.0 milestone Oct 12, 2022
@bneradt bneradt self-assigned this Oct 12, 2022
@bneradt
Copy link
Contributor Author

bneradt commented Oct 13, 2022

[approve ci autest]

For CONNECT requests, Traffic Dump will not have a server-side protocol
stack because we populate that on HTTP responses from the server. Since
we simply establish a connection to the origin without exchanging an
HTTP message, the stack is never populated. This resulted in malformed
YAML because we started a sequence with a ','. This patch addresses this
by not adding the ',' if the protocol description string is empty.
@bneradt bneradt force-pushed the fix_traffic_dump_for_http_connect branch from c41f25a to 74fef81 Compare October 14, 2022 21:15
@bneradt bneradt merged commit 96acfe8 into apache:master Oct 17, 2022
@bneradt bneradt deleted the fix_traffic_dump_for_http_connect branch October 17, 2022 18:46
zwoop pushed a commit that referenced this pull request Oct 17, 2022
For CONNECT requests, Traffic Dump will not have a server-side protocol
stack because we populate that on HTTP responses from the server. Since
we simply establish a connection to the origin without exchanging an
HTTP message, the stack is never populated. This resulted in malformed
YAML because we started a sequence with a ','. This patch addresses this
by not adding the ',' if the protocol description string is empty.

(cherry picked from commit 96acfe8)
@zwoop
Copy link
Contributor

zwoop commented Oct 17, 2022

Cherry-picked to v9.2.x

@zwoop zwoop modified the milestones: 10.0.0, 9.2.0 Oct 17, 2022
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Feb 21, 2023
* asf/9.2.x:
  Updated ChangeLog
  Fail sni.yaml loading if related resources fail to load (apache#9132)
  fix contradicting documentation and say a bit about the resident size of a volume directory (apache#9133)
  AuTest automatic keylog file configuration (apache#9137)
  Traffic Dump: fix YAML format for CONNECT requests (apache#9139)
  Updated ChangeLog
  Remove intermediate buffer in PluginVC (apache#8698)
  Fix HTTP/2 session receive window handling for small sizes (apache#9117) (apache#9122)
  9.2: Fix s3_auth_config test output check (apache#9123)

 Conflicts:
	CHANGELOG-9.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants