mirror of https://github.com/voidlizard/hbs2
devlog and timeouts
This commit is contained in:
parent
83decc3bfb
commit
2743d0131d
|
@ -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
|
## 2023-03-28
|
||||||
|
|
||||||
FIXME: git-repo-consistency-check
|
FIXME: git-repo-consistency-check
|
||||||
|
|
|
@ -13,7 +13,7 @@ defMessageQueueSize :: Integral a => a
|
||||||
defMessageQueueSize = 65536*10
|
defMessageQueueSize = 65536*10
|
||||||
|
|
||||||
defBurst :: Integral a => a
|
defBurst :: Integral a => a
|
||||||
defBurst = 8
|
defBurst = 4
|
||||||
|
|
||||||
defBurstMax :: Integral a => a
|
defBurstMax :: Integral a => a
|
||||||
defBurstMax = 64
|
defBurstMax = 64
|
||||||
|
@ -60,24 +60,24 @@ defBlockBanTime :: TimeSpec
|
||||||
defBlockBanTime = toTimeSpec defBlockBanTimeSec
|
defBlockBanTime = toTimeSpec defBlockBanTimeSec
|
||||||
|
|
||||||
defBlockBanTimeSec :: Timeout 'Seconds
|
defBlockBanTimeSec :: Timeout 'Seconds
|
||||||
defBlockBanTimeSec = 30 :: Timeout 'Seconds
|
defBlockBanTimeSec = 60 :: Timeout 'Seconds
|
||||||
|
|
||||||
defBlockWipTimeout :: TimeSpec
|
defBlockWipTimeout :: TimeSpec
|
||||||
defBlockWipTimeout = defCookieTimeout
|
defBlockWipTimeout = defCookieTimeout
|
||||||
|
|
||||||
defBlockInfoTimeout :: Timeout 'Seconds
|
defBlockInfoTimeout :: Timeout 'Seconds
|
||||||
defBlockInfoTimeout = 2
|
defBlockInfoTimeout = 5
|
||||||
|
|
||||||
defBlockInfoTimeoutSpec :: TimeSpec
|
defBlockInfoTimeoutSpec :: TimeSpec
|
||||||
defBlockInfoTimeoutSpec = toTimeSpec defBlockInfoTimeout
|
defBlockInfoTimeoutSpec = toTimeSpec defBlockInfoTimeout
|
||||||
|
|
||||||
-- how much time wait for block from peer?
|
-- how much time wait for block from peer?
|
||||||
defBlockWaitMax :: Timeout 'Seconds
|
defBlockWaitMax :: Timeout 'Seconds
|
||||||
defBlockWaitMax = 1 :: Timeout 'Seconds
|
defBlockWaitMax = 5 :: Timeout 'Seconds
|
||||||
|
|
||||||
-- how much time wait for block from peer?
|
-- how much time wait for block from peer?
|
||||||
defChunkWaitMax :: Timeout 'Seconds
|
defChunkWaitMax :: Timeout 'Seconds
|
||||||
defChunkWaitMax = 1 :: Timeout 'Seconds
|
defChunkWaitMax = 3 :: Timeout 'Seconds
|
||||||
|
|
||||||
defSweepTimeout :: Timeout 'Seconds
|
defSweepTimeout :: Timeout 'Seconds
|
||||||
defSweepTimeout = 30 -- FIXME: only for debug!
|
defSweepTimeout = 30 -- FIXME: only for debug!
|
||||||
|
|
Loading…
Reference in New Issue