diff --git a/docs/devlog.md b/docs/devlog.md index f5e08a7b..9a4cfe2a 100644 --- a/docs/devlog.md +++ b/docs/devlog.md @@ -1,3 +1,17 @@ + +## 2023-03-29 + +TODO: smart-peer-choice-on-download + +TODO: test-new-timeouts-on-good-network + +TODO: measure-peer-rtt-on-ping + +TODO: set-timeouts-dynamically-via-rtt + +TODO: ASAP-FIX-FUCKING-AUTH-LOST-WTF + + ## 2023-03-28 FIXME: git-repo-consistency-check diff --git a/hbs2-core/lib/HBS2/Defaults.hs b/hbs2-core/lib/HBS2/Defaults.hs index 74f6f01c..72996f2e 100644 --- a/hbs2-core/lib/HBS2/Defaults.hs +++ b/hbs2-core/lib/HBS2/Defaults.hs @@ -13,7 +13,7 @@ defMessageQueueSize :: Integral a => a defMessageQueueSize = 65536*10 defBurst :: Integral a => a -defBurst = 8 +defBurst = 4 defBurstMax :: Integral a => a defBurstMax = 64 @@ -60,24 +60,24 @@ defBlockBanTime :: TimeSpec defBlockBanTime = toTimeSpec defBlockBanTimeSec defBlockBanTimeSec :: Timeout 'Seconds -defBlockBanTimeSec = 30 :: Timeout 'Seconds +defBlockBanTimeSec = 60 :: Timeout 'Seconds defBlockWipTimeout :: TimeSpec defBlockWipTimeout = defCookieTimeout defBlockInfoTimeout :: Timeout 'Seconds -defBlockInfoTimeout = 2 +defBlockInfoTimeout = 5 defBlockInfoTimeoutSpec :: TimeSpec defBlockInfoTimeoutSpec = toTimeSpec defBlockInfoTimeout -- how much time wait for block from peer? defBlockWaitMax :: Timeout 'Seconds -defBlockWaitMax = 1 :: Timeout 'Seconds +defBlockWaitMax = 5 :: Timeout 'Seconds -- how much time wait for block from peer? defChunkWaitMax :: Timeout 'Seconds -defChunkWaitMax = 1 :: Timeout 'Seconds +defChunkWaitMax = 3 :: Timeout 'Seconds defSweepTimeout :: Timeout 'Seconds defSweepTimeout = 30 -- FIXME: only for debug!