|
|
|
|
|
by FooBarWidget
642 days ago
|
|
I also wonder whether the code actually works reliably. They have an "onpacket" handler on the pcap object, but this handler is, I think, called on every TCP packet. Which may not correspond to an HTTP session. Consider an app that starts an HTTP session by sending two TCP packets: 1. GET /foo 2. HTTP/1.1\r\n...etc... Their code would not catch this. |
|
Moreover, I am happy to learn more from you and if you have any recommendation please mention it. This simple implementation has met my needs.
Regarding the performance, to be honest I've not tested it as I am not expert in this domain, so any hit is appreciated.