diff --git a/ChangeLog b/ChangeLog index 2857e447..2521ddaf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-14 Tatsuhiro Tsujikawa + + Use --max-connection-per-server option value for Metalink. + * src/Metalink2RequestGroup.cc + 2010-11-14 Tatsuhiro Tsujikawa Fixed compile error on opensolaris diff --git a/src/Metalink2RequestGroup.cc b/src/Metalink2RequestGroup.cc index c2e943ef..6687b2c8 100644 --- a/src/Metalink2RequestGroup.cc +++ b/src/Metalink2RequestGroup.cc @@ -256,7 +256,8 @@ Metalink2RequestGroup::createRequestGroup util::applyDir(option->get(PREF_DIR), entry->file->getPath()))); dctx->getFirstFileEntry()->setUris(uris); - dctx->getFirstFileEntry()->setMaxConnectionPerServer(1); + dctx->getFirstFileEntry()->setMaxConnectionPerServer + (option->getAsInt(PREF_MAX_CONNECTION_PER_SERVER)); if(option->getAsBool(PREF_METALINK_ENABLE_UNIQUE_PROTOCOL)) { dctx->getFirstFileEntry()->setUniqueProtocol(true); } @@ -296,7 +297,8 @@ Metalink2RequestGroup::createRequestGroup (new FileEntry (util::applyDir(option->get(PREF_DIR), (*i)->file->getPath()), (*i)->file->getLength(), offset, uris)); - fe->setMaxConnectionPerServer(1); + fe->setMaxConnectionPerServer + (option->getAsInt(PREF_MAX_CONNECTION_PER_SERVER)); if(option->getAsBool(PREF_METALINK_ENABLE_UNIQUE_PROTOCOL)) { fe->setUniqueProtocol(true); }