diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-12-25 12:40:45 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-12-25 12:40:45 +0000 |
| commit | eed41706fc0e72c15b0509f6a93b03644cc06c59 (patch) | |
| tree | b66e093ae6ae64de720d0f966012d88f0fd8ded6 | |
| parent | e707ba0a6c35c3cc7c7c91d70d91f7ad9c6969d6 (diff) | |
2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
command-line options.
* src/option_processing.cc
* src/ActivePeerConnectionCommand.cc
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | src/ActivePeerConnectionCommand.cc | 2 | ||||
| -rw-r--r-- | src/option_processing.cc | 2 |
3 files changed, 10 insertions, 2 deletions
@@ -1,5 +1,13 @@ 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> + Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and + lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them + command-line options. + * src/option_processing.cc + * src/ActivePeerConnectionCommand.cc + +2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> + Send have message to peer if it already has the piece. * src/BtHaveMessage.{h, cc} diff --git a/src/ActivePeerConnectionCommand.cc b/src/ActivePeerConnectionCommand.cc index 27c0798d..ef7e1a32 100644 --- a/src/ActivePeerConnectionCommand.cc +++ b/src/ActivePeerConnectionCommand.cc @@ -47,7 +47,7 @@ ActivePeerConnectionCommand::ActivePeerConnectionCommand(int cuid, RequestGroupAware(requestGroup), interval(interval), e(e), - _lowestSpeedLimit(20*1024), + _lowestSpeedLimit(50*1024), _numNewConnection(5) {} diff --git a/src/option_processing.cc b/src/option_processing.cc index b0beaa12..05ec2e69 100644 --- a/src/option_processing.cc +++ b/src/option_processing.cc @@ -91,7 +91,7 @@ Option* option_processing(int argc, char* const argv[]) op->put(PREF_RETRY_WAIT, "5"); op->put(PREF_TIMEOUT, "60"); op->put(PREF_DNS_TIMEOUT, "10"); - op->put(PREF_PEER_CONNECTION_TIMEOUT, "60"); + op->put(PREF_PEER_CONNECTION_TIMEOUT, "20"); op->put(PREF_BT_TIMEOUT, "180"); op->put(PREF_BT_REQUEST_TIMEOUT, "60"); op->put(PREF_BT_KEEP_ALIVE_INTERVAL, "120"); |
