net: add a flag to indicate when a node's process queue is full
commitc6e8a9bcffe4c0f236e27c663f08785d1a0a783b
authorCory Fields <cory-nospam-@coryfields.com>
Sat, 31 Dec 2016 07:05:30 +0000 (31 02:05 -0500)
committerCory Fields <cory-nospam-@coryfields.com>
Fri, 13 Jan 2017 04:05:47 +0000 (12 23:05 -0500)
treeb622192961f036991f6de2ceea0d483931a78eca
parent4d712e366ca7fffaf96394ef01c9246482c0d92e
net: add a flag to indicate when a node's process queue is full

Messages are dumped very quickly from the socket handler to the processor, so
it's the depth of the processing queue that's interesting.

The socket handler checks the process queue's size during the brief message
hand-off and pauses if necessary, and the processor possibly unpauses each time
a message is popped off of its queue.
src/net.cpp
src/net.h
src/net_processing.cpp