diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-12 05:58:31 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-12 05:58:31 +0400 |
commit | 172f5f8efdc3f2c9c01e56f628521e3aa22ef883 (patch) | |
tree | fd1d3452e9b6ccb933c4910eb92e648899caf619 /src/Network/BitTorrent/Exchange/Wire.hs | |
parent | c73909b1bfe460997b4bf89cd5edf791804eaf66 (diff) |
Move metadata exchange default limits to Message.hs
Diffstat (limited to 'src/Network/BitTorrent/Exchange/Wire.hs')
-rw-r--r-- | src/Network/BitTorrent/Exchange/Wire.hs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/Network/BitTorrent/Exchange/Wire.hs b/src/Network/BitTorrent/Exchange/Wire.hs index ef53032e..f61e59fa 100644 --- a/src/Network/BitTorrent/Exchange/Wire.hs +++ b/src/Network/BitTorrent/Exchange/Wire.hs | |||
@@ -410,17 +410,6 @@ data Options = Options | |||
410 | , maxInfoDictSize :: {-# UNPACK #-} !Int | 410 | , maxInfoDictSize :: {-# UNPACK #-} !Int |
411 | } deriving Show | 411 | } deriving Show |
412 | 412 | ||
413 | -- | Allows a requesting peer to send 2 'MetadataRequest's for the | ||
414 | -- each piece. | ||
415 | defaultMetadataFactor :: Int | ||
416 | defaultMetadataFactor = 2 | ||
417 | |||
418 | -- | Usually torrent size do not exceed 1MB. This value limit torrent | ||
419 | -- /content/ size to about 8TB. See 'maxInfoDictSize' for explanation | ||
420 | -- why do we need this limit. | ||
421 | defaultMaxInfoDictSize :: Int | ||
422 | defaultMaxInfoDictSize = 10 * 1024 * 1024 | ||
423 | |||
424 | -- | Permissive default parameters, most likely you don't need to | 413 | -- | Permissive default parameters, most likely you don't need to |
425 | -- change them. | 414 | -- change them. |
426 | instance Default Options where | 415 | instance Default Options where |