aboutsummaryrefslogtreecommitdiff
path: root/src/test/script_P2SH_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2013-03-29 23:49:38 +0100
committerPieter Wuille <[email protected]>2013-03-30 18:14:54 +0100
commitc7f039b674b43b741f20bf7521eb8a68426f4275 (patch)
tree433fb59877457ddd5c51863c15ccda529e886368 /src/test/script_P2SH_tests.cpp
parentUse per-message send buffer, rather than per connection (diff)
downloaddiscoin-c7f039b674b43b741f20bf7521eb8a68426f4275.tar.xz
discoin-c7f039b674b43b741f20bf7521eb8a68426f4275.zip
Process getdata invs separately until send buffer overflows
There exists a per-message-processed send buffer overflow protection, where processing is halted when the send buffer is larger than the allowed maximum. This protection does not apply to individual items, however, and getdata has the potential for causing large amounts of data to be sent. In case several hundreds of blocks are requested in one getdata, the send buffer can easily grow 50 megabytes above the send buffer limit. This commit breaks up the processing of getdata requests, remembering them inside a CNode when too many are requested at once.
Diffstat (limited to 'src/test/script_P2SH_tests.cpp')
0 files changed, 0 insertions, 0 deletions