This was forgotten by myself in commit fa5b58ea01fac1adb6336b8b6b5217193295c695.
This time, there is a diff to test, which fails on current master and passes with this pull request.
0diff --git a/src/net_processing.cpp b/src/net_processing.cpp
1index e503a68382..16438ebd08 100644
2--- a/src/net_processing.cpp
3+++ b/src/net_processing.cpp
4@@ -112,9 +112,9 @@ static_assert(MAX_BLOCKTXN_DEPTH <= MIN_BLOCKS_TO_KEEP, "MAX_BLOCKTXN_DEPTH too
5 * want to make this a per-peer adaptive value at some point. */
6 static const unsigned int BLOCK_DOWNLOAD_WINDOW = 1024;
7 /** Block download timeout base, expressed in multiples of the block interval (i.e. 10 min) */
8-static constexpr double BLOCK_DOWNLOAD_TIMEOUT_BASE = 1;
9+static constexpr double BLOCK_DOWNLOAD_TIMEOUT_BASE = .05; // 30 sec
10 /** Additional block download timeout per parallel downloading peer (i.e. 5 min) */
11-static constexpr double BLOCK_DOWNLOAD_TIMEOUT_PER_PEER = 0.5;
12+static constexpr double BLOCK_DOWNLOAD_TIMEOUT_PER_PEER = 0.;
13 /** Maximum number of headers to announce when relaying blocks with headers message.*/
14 static const unsigned int MAX_BLOCKS_TO_ANNOUNCE = 8;
15 /** Minimum blocks required to signal NODE_NETWORK_LIMITED */
16diff --git a/test/functional/p2p_ibd_stalling.py b/test/functional/p2p_ibd_stalling.py
17index fa07873929..f8cdd8998c 100755
18--- a/test/functional/p2p_ibd_stalling.py
19+++ b/test/functional/p2p_ibd_stalling.py
20@@ -82,6 +82,7 @@ class P2PIBDStallingTest(BitcoinTestFramework):
21 # Need to wait until 1023 blocks are received - the magic total bytes number is a workaround in lack of an rpc
22 # returning the number of downloaded (but not connected) blocks.
23 bytes_recv = 172761 if not self.options.v2transport else 169692
24+ time.sleep(31);
25 self.wait_until(lambda: self.total_bytes_recv_for_blocks() == bytes_recv)
26
27 self.all_sync_send_with_ping(peers)