The idea behind this patch is primarily to save upload bandwidth by sending fewer nodes back to duplicate requests from IPs. It only affects nodes that actually make it into the ping_queue, but any request from an IP that's in the queue receives 3 nodes, instead of the configured number (16 by default).
My experience is that at least a 1/3rd of all incoming requests fall into this category.
send fewer nodes in the response tu duplicate IP requests (to save ba…
I flipped around sending the response and inserting into the queue, since inserting is what tells us whether it's a duplicate or not. note that I removed your duplicate check against the last source IP. did you get a lot of hits on that one? should I put it back?
I didn't add that check you did, see 465def2.
oh I see :)
maybe this enum is poorly named