mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 05:32:31 +00:00
* Limit the number of simultanious http connections.
* Added max_open_http to the man page. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@840 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -51,12 +51,9 @@ namespace core {
|
||||
HttpQueue::iterator
|
||||
HttpQueue::insert(const std::string& url, std::iostream* s) {
|
||||
std::auto_ptr<CurlGet> h(m_slotFactory());
|
||||
//std::auto_ptr<std::stringstream> s(new std::stringstream);
|
||||
|
||||
h->set_url(url);
|
||||
//h->set_stream(s.get());
|
||||
h->set_stream(s);
|
||||
h->set_user_agent("rtorrent/" VERSION);
|
||||
|
||||
iterator itr = Base::insert(end(), h.get());
|
||||
|
||||
@@ -66,8 +63,6 @@ HttpQueue::insert(const std::string& url, std::iostream* s) {
|
||||
(*itr)->start();
|
||||
|
||||
h.release();
|
||||
//s.release();
|
||||
|
||||
m_signalInsert.emit(*itr);
|
||||
|
||||
return itr;
|
||||
@@ -77,9 +72,7 @@ void
|
||||
HttpQueue::erase(iterator itr) {
|
||||
m_signalErase.emit(*itr);
|
||||
|
||||
//delete (*itr)->get_stream();
|
||||
delete *itr;
|
||||
|
||||
Base::erase(itr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user