diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-06-14 07:12:53 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-06-14 07:12:53 +0400 |
commit | 1fb701938aba43797124d2975c15f936ac71409a (patch) | |
tree | ac961d404775f234476ea2f00555648d087f9da8 /src/Network/BitTorrent/Tracker | |
parent | b1413145f58be6c3d7e536574a19e1b6c333cd54 (diff) |
~ Cosmetic changes.
Diffstat (limited to 'src/Network/BitTorrent/Tracker')
-rw-r--r-- | src/Network/BitTorrent/Tracker/Protocol.hs | 5 |
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 | -- |
217 | defaultNumWant :: Int | 218 | defaultNumWant :: Int |
218 | defaultNumWant = 25 | 219 | defaultNumWant = 50 |
219 | 220 | ||
220 | mkHTTPRequest :: URI -> Request ByteString | 221 | mkHTTPRequest :: URI -> Request ByteString |
221 | mkHTTPRequest uri = Request uri GET [] "" | 222 | mkHTTPRequest uri = Request uri GET [] "" |