generated from honeycombio/.github
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maint: Replace custom request/response counter with TCP seq & ack cou…
…nters (#163) ## Which problem is this PR solving? We currently use a custom request / response counter struct to pair up HTTP request and response pairs. This PR switches to using TCP segment seq and ack references received by the stream to match requests and responses. HTTP requires the request to finish before sending a response. The TCP ack number on the first segment of a HTTP request will equal TCP seq number on the first segment of the corresponding HTTP response. This allows us to track multiple HTTP request / pairs on the same TCP stream. ## Short description of the changes - Record Seq and Ack field in AssemblyContext struct during packet handling - Use seq or ack from context based on flow direction when passing the packet to a tcp readers in place of request/response counter - Remove RequestCounter struct and remove from stream struct ## How to verify that this has the expected result No external change, HTTP requests / response matching better than before! --------- Co-authored-by: JamieDanielson <jamieedanielson@gmail.com> Co-authored-by: Robb Kidd <robbkidd@honeycomb.io>
- Loading branch information
1 parent
bdf0563
commit bd1ac45
Showing
4 changed files
with
26 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters