diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-09 12:13:08 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-09 12:13:08 +0000 |
| commit | 4b997228add32615d082b9a4b936b78ade769dd9 (patch) | |
| tree | 147d72fe16a504d851344cccb2d0a5b5512f6ef0 /src/HttpRequestCommand.cc | |
| parent | a91664cef854b7d0f9ae830fe3efc26c50cb6b86 (diff) | |
2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added --connect-timeout option to specify connect timeout in
seconds.
This option is in effect for HTTP/FTP/proxy server. The timeout
for
connecting to BitTorrent peer is not controlled by this option.
* src/AbstractProxyRequestCommand.cc
* src/FtpNegotiationCommand.cc
* src/HelpItemFactory.cc
* src/HttpRequestCommand.cc
* src/OptionHandlerFactory.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
Diffstat (limited to 'src/HttpRequestCommand.cc')
| -rw-r--r-- | src/HttpRequestCommand.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc index 3f8a3e65..d2ff2bf9 100644 --- a/src/HttpRequestCommand.cc +++ b/src/HttpRequestCommand.cc @@ -61,6 +61,7 @@ HttpRequestCommand::HttpRequestCommand :AbstractCommand(cuid, req, requestGroup, e, s), _httpConnection(httpConnection) { + setTimeout(e->option->getAsInt(PREF_CONNECT_TIMEOUT)); disableReadCheckSocket(); setWriteCheckSocket(socket); } |
