bitcoin/bitcoin — pull request #2599 by sipa (2013-04-30 16:47:03+00:00)
Title: Do not kill connections on recv buffer overflow

Instead of killing a connection when the receive buffer overflows, just temporarily halt receiving before that happens. Also, no matter what, always allow at least one full message in the receive buffer (otherwise blocks larger than the configured buffer size would pause indefinitely).

Fixes #2597.