Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


Commit [c7f039] Maximize Restore History

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

This commit breaks up the processing of getdata requests, remembering
them inside a CNode when too many are requested at once.

Pieter Wuille Pieter Wuille 2013-03-29

changed src
changed src/main.cpp
changed src/net.h
src/main.cpp Diff Switch to side-by-side view
src/net.h Diff Switch to side-by-side view