summaryrefslogtreecommitdiff
path: root/src/DownloadEngine.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-10-19 14:02:47 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-10-19 14:02:47 +0000
commit51308002d365f8f4f1890990a9e5ad087320374a (patch)
tree7aedf5a078854332ba167625027ef2359771b457 /src/DownloadEngine.h
parent6b74a27586b261c04d6d7cc4c5233678264c5322 (diff)
2010-10-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Don't reuse socket which is readable because we assume that if socket is readable it means peer shutdowns connection and the socket will receive EOF. Added default timeout value to DownloadEngine::poolSocket(). * src/DownloadEngine.cc * src/DownloadEngine.h
Diffstat (limited to 'src/DownloadEngine.h')
-rw-r--r--src/DownloadEngine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DownloadEngine.h b/src/DownloadEngine.h
index b44cc287..9a2407b0 100644
--- a/src/DownloadEngine.h
+++ b/src/DownloadEngine.h
@@ -257,7 +257,7 @@ public:
const std::string& proxyhost, uint16_t proxyport,
const SharedHandle<SocketCore>& sock,
const std::map<std::string, std::string>& options,
- time_t timeout);
+ time_t timeout = 15);
void poolSocket(const SharedHandle<Request>& request,
const std::string& username,
@@ -269,7 +269,7 @@ public:
void poolSocket(const std::string& ipaddr, uint16_t port,
const std::string& proxyhost, uint16_t proxyport,
const SharedHandle<SocketCore>& sock,
- time_t timeout);
+ time_t timeout = 15);
void poolSocket(const SharedHandle<Request>& request,
const SharedHandle<Request>& proxyRequest,