Add better debugging info for detecting when calls from threaded p2p code take longer than expected--in addition to measuring the total time, also measure the delay before the call is executed and after the call completes.
Measure network latency more accurately, and add a message that reports it when scanning the network.