14 May 2007 19:15
select vs fork implementation of sndrcv() in scapy-com
Donovan Baarda <abo <at> google.com>
2007-05-14 17:15:27 GMT
2007-05-14 17:15:27 GMT
G'day scapy, Currently the scapy-com repository head includes my change that totally replaces sndrcv() to use select loop driven send/recv instead of forking off a sender process. I did this because I needed more accurate timestamps on packets to get accurate RTT measurements, and this looked like the easiest way. Since my application relies on this change, I'd like to know the chances that this will make it into the official release. I don't want to be forever running with a local fork of scapy, and would rather have my application monkeypatch this change into a vanilla scapy if I have to. My change is non-trivial so I can understand if it never makes it into release. A quick summary of what I consider the pros and cons might help; Pros: * accurate timestamps and RTT time measurement * faster on single-core systems * simpler and smaller code * easier to profile Cons: * big change that could introduce breakage * slower on multi-core systems I'm thinking right now that I will go down the path of making my app monkey-patch scapy, because it is something I can always remove later when/if scapy accepts this change.(Continue reading)
RSS Feed