What is the performance like when doing this? Doing pcap capturing and processing in node.js feels slow, but that is just a feeling and I don't have any data to back it up.. are there any performance impact studies?
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.
Also, you can set a filter on the pcap session so that pcap only gives you http packets. Then you don't have to check yourself whether you captured non-http.