|
Re: Priority, Speed: msg#00065network.bit-torrent.libtorrent
On Apr 27, 2006, at 01:39, Florin Braghis wrote: Thanks for the answers, Arvid! The limiting factors are the number of outstanding requests sent to the peer. In order to reach to about 2 MB/s, the client has to be configured to send about 200 outstanding requests to peers. Some peers will start to ignore requests when they reach about 50 outstanding requests. The default in libtorrent right now is 48 (it's a constant in policy.hpp). That is the factor that limits the top speed. The "acceleration" of the download speed is controlled by a constant called request_queue_time in session_settings.hpp (this file is new, and you may need today's snapshot to have it. The class can be found inside session.hpp in older versions). This constant controls the relationship between the outstanding request queue size and the download rate. The former is controlled by the latter, and the time is the time it should take for the other end to transfer all the requests in the queue with the current download rate. The higher this time is, the faster the speed will increase and reach the saturation point. The session_settings class is a start in making all of these constants configurable from the API, they will be made configurable. Hope this is to any help. -- Arvid Norberg ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Missing peer_connection::setup_send() in peer_connection::on_connection_complete()?: 00065, Arvid Norberg |
|---|---|
| Next by Date: | Re: Missing peer_connection::setup_send() in peer_connection::on_connection_complete()?: 00065, Tianhao Qiu |
| Previous by Thread: | Re: Priority, Speedi: 00065, MooPolice |
| Next by Thread: | cvs head updated: asio, web seed and test with sequential downloading: 00065, Arvid Norberg |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |