2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Removed --retry-wait option since the current architecture doesn't
	allow sleep for particular URI.
	* src/AbstractCommand.cc
	* src/OptionHandlerFactory.cc
	* src/download_helper.cc
	* src/prefs.cc
	* src/prefs.h
pull/1/head
Tatsuhiro Tsujikawa 2009-09-20 09:03:57 +00:00
parent e8bda3f593
commit fe2bb7e233
6 changed files with 11 additions and 16 deletions

View File

@ -1,3 +1,13 @@
2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed --retry-wait option since the current architecture doesn't
allow sleep for particular URI.
* src/AbstractCommand.cc
* src/OptionHandlerFactory.cc
* src/download_helper.cc
* src/prefs.cc
* src/prefs.h
2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed Retry-After header support. Since the current architecture

View File

@ -219,7 +219,7 @@ bool AbstractCommand::execute() {
tryReserved();
return true;
} else {
return prepareForRetry(getOption()->getAsInt(PREF_RETRY_WAIT));
return prepareForRetry(0);
}
} catch(DownloadFailureException& err) {
logger->error(EX_EXCEPTION_CAUGHT, err);

View File

@ -533,16 +533,6 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
op->addTag(TAG_HTTP);
handlers.push_back(op);
}
{
SharedHandle<OptionHandler> op(new NumberOptionHandler
(PREF_RETRY_WAIT,
TEXT_RETRY_WAIT,
"5",
0, 60));
op->addTag(TAG_FTP);
op->addTag(TAG_HTTP);
handlers.push_back(op);
}
{
SharedHandle<OptionHandler> op(new BooleanOptionHandler
(PREF_REUSE_URI,

View File

@ -83,7 +83,6 @@ const std::vector<std::string>& listRequestOptions()
PREF_OUT,
PREF_PROXY_METHOD,
PREF_REMOTE_TIME,
PREF_RETRY_WAIT,
PREF_SPLIT,
PREF_TIMEOUT,
PREF_HTTP_AUTH_CHALLENGE,

View File

@ -48,8 +48,6 @@ const std::string V_ALL("all");
* General preferences
*/
// values: 1*digit
const std::string PREF_RETRY_WAIT("retry-wait");
// values: 1*digit
const std::string PREF_TIMEOUT("timeout");
// values: 1*digit
const std::string PREF_DNS_TIMEOUT("dns-timeout");

View File

@ -52,8 +52,6 @@ extern const std::string V_ALL;
* General preferences
*/
// values: 1*digit
extern const std::string PREF_RETRY_WAIT;
// values: 1*digit
extern const std::string PREF_TIMEOUT;
// values: 1*digit
extern const std::string PREF_DNS_TIMEOUT;