summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Tracker
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-06-14 07:12:53 +0400
committerSam T <pxqr.sta@gmail.com>2013-06-14 07:12:53 +0400
commit1fb701938aba43797124d2975c15f936ac71409a (patch)
treeac961d404775f234476ea2f00555648d087f9da8 /src/Network/BitTorrent/Tracker
parentb1413145f58be6c3d7e536574a19e1b6c333cd54 (diff)
~ Cosmetic changes.
Diffstat (limited to 'src/Network/BitTorrent/Tracker')
-rw-r--r--src/Network/BitTorrent/Tracker/Protocol.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/Tracker/Protocol.hs b/src/Network/BitTorrent/Tracker/Protocol.hs
index f7599ba2..d4f3da3c 100644
--- a/src/Network/BitTorrent/Tracker/Protocol.hs
+++ b/src/Network/BitTorrent/Tracker/Protocol.hs
@@ -212,10 +212,11 @@ defaultPorts = [6881..6889]
212-- in fact only actively forms new connections if it has less than 212-- in fact only actively forms new connections if it has less than
213-- 30 peers and will refuse connections if it has 55. 213-- 30 peers and will refuse connections if it has 55.
214-- 214--
215-- So the default value is set to 25. 215-- So the default value is set to 50 because usually 30-50% of peers
216-- are not responding.
216-- 217--
217defaultNumWant :: Int 218defaultNumWant :: Int
218defaultNumWant = 25 219defaultNumWant = 50
219 220
220mkHTTPRequest :: URI -> Request ByteString 221mkHTTPRequest :: URI -> Request ByteString
221mkHTTPRequest uri = Request uri GET [] "" 222mkHTTPRequest uri = Request uri GET [] ""