summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Exchange/Wire.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-12-12 05:58:31 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-12-12 05:58:31 +0400
commit172f5f8efdc3f2c9c01e56f628521e3aa22ef883 (patch)
treefd1d3452e9b6ccb933c4910eb92e648899caf619 /src/Network/BitTorrent/Exchange/Wire.hs
parentc73909b1bfe460997b4bf89cd5edf791804eaf66 (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.hs11
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.
415defaultMetadataFactor :: Int
416defaultMetadataFactor = 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.
421defaultMaxInfoDictSize :: Int
422defaultMaxInfoDictSize = 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.
426instance Default Options where 415instance Default Options where