forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reverse port issue pcap capture (netty#12081)
Motivation: While exploring how to introduce PCAP support into Vert.x and Quarkus based on Netty's PcapWriteHandler, I noticed that in server pipelines, the capture has the source and destination ports reversed for server pipelines. This can be seen in the screenshot from eclipse-vertx/vert.x#4260 (comment), where a browser is requesting data from a REST API built with Quarkus listening on port 8080. In the screenshot you can see that initial HTTP request has the ports reversed. Modification: This change makes sure that source and destination ports are always properly determined no matter what type of pipeline is being used Result: Correct port is used
- Loading branch information
Showing
2 changed files
with
213 additions
and
46 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 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