fixed performance issue in rate limited udp socket
This commit is contained in:
parent
bf842f8120
commit
4ecb9f1462
|
@ -41,7 +41,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include "libtorrent/thread.hpp"
|
#include "libtorrent/thread.hpp"
|
||||||
#include "libtorrent/deadline_timer.hpp"
|
#include "libtorrent/deadline_timer.hpp"
|
||||||
|
|
||||||
#include <list>
|
#include <deque>
|
||||||
#include <boost/function/function4.hpp>
|
#include <boost/function/function4.hpp>
|
||||||
|
|
||||||
namespace libtorrent
|
namespace libtorrent
|
||||||
|
@ -217,7 +217,7 @@ namespace libtorrent
|
||||||
// while we're connecting to the proxy
|
// while we're connecting to the proxy
|
||||||
// we have to queue the packets, we'll flush
|
// we have to queue the packets, we'll flush
|
||||||
// them once we're connected
|
// them once we're connected
|
||||||
std::list<queued_packet> m_queue;
|
std::deque<queued_packet> m_queue;
|
||||||
#ifdef TORRENT_DEBUG
|
#ifdef TORRENT_DEBUG
|
||||||
bool m_started;
|
bool m_started;
|
||||||
int m_magic;
|
int m_magic;
|
||||||
|
@ -241,7 +241,7 @@ namespace libtorrent
|
||||||
int m_rate_limit;
|
int m_rate_limit;
|
||||||
int m_quota;
|
int m_quota;
|
||||||
ptime m_last_tick;
|
ptime m_last_tick;
|
||||||
std::list<queued_packet> m_queue;
|
std::deque<queued_packet> m_queue;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue