Still todo:
set -maxconnections default.
Still todo:
set -maxconnections default.
Drop connections that are either sending messages too fast to handle or are processing messages so slowly data starts to back up.
Adds two new options:
-maxreceivebuffer Default: 2000 (2000*1000 bytes)
-maxsendbuffer Default: 256 (256*1000 bytes)
ACK, thanks
Tested by re-downloading entire block chain with -maxreceivebuffer=500 -maxsendbuffer=100 (no issues), after trying with even smaller limits (there were issues-- disconnections due to running out of receivebuffer space-- but no crashes, it handled the disconnect then find another peer gracefully).
Test and regular faucets are now running with this patch.