* 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:
rakshasa
2007-01-02 17:06:08 +00:00
parent de744ad11d
commit 3b38c4ab9c
14 changed files with 141 additions and 134 deletions
-7
View File
@@ -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);
}