diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-08-29 08:46:57 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-08-29 08:46:57 +0000 |
commit | 6277dcbf16ad8da7a6f6f27655f212ccd06c5ac1 (patch) | |
tree | 3595c0840d900eda8a5ae912100683c1988703e4 | |
parent | 0b1405d0f7044a02bf26b1276c6ebb409d113521 (diff) |
Increase S3Simulator HTTP timeout to aid debugging
-rw-r--r-- | lib/httpserver/HTTPServer.cpp | 4 | ||||
-rw-r--r-- | lib/httpserver/HTTPServer.h | 3 | ||||
-rw-r--r-- | lib/httpserver/S3Simulator.h | 4 |
3 files changed, 7 insertions, 4 deletions
diff --git a/lib/httpserver/HTTPServer.cpp b/lib/httpserver/HTTPServer.cpp index 1dcefb06..3358e874 100644 --- a/lib/httpserver/HTTPServer.cpp +++ b/lib/httpserver/HTTPServer.cpp @@ -27,8 +27,8 @@ // Created: 26/3/04 // // -------------------------------------------------------------------------- -HTTPServer::HTTPServer() - : mTimeout(20000) // default timeout leaves a little while for clients to get the second request in. +HTTPServer::HTTPServer(int Timeout) +: mTimeout(Timeout) { } diff --git a/lib/httpserver/HTTPServer.h b/lib/httpserver/HTTPServer.h index 91f4e96c..8ac1ff83 100644 --- a/lib/httpserver/HTTPServer.h +++ b/lib/httpserver/HTTPServer.h @@ -27,7 +27,8 @@ class HTTPResponse; class HTTPServer : public ServerStream<SocketStream, 80> { public: - HTTPServer(); + HTTPServer(int Timeout = 60000); + // default timeout leaves 1 minute for clients to get a second request in. ~HTTPServer(); private: // no copying diff --git a/lib/httpserver/S3Simulator.h b/lib/httpserver/S3Simulator.h index 18bcdd4f..eef4f400 100644 --- a/lib/httpserver/S3Simulator.h +++ b/lib/httpserver/S3Simulator.h @@ -27,7 +27,9 @@ class HTTPResponse; class S3Simulator : public HTTPServer { public: - S3Simulator() { } + // Increase timeout to 5 minutes, from HTTPServer default of 1 minute, + // to help with debugging. + S3Simulator() : HTTPServer(300000) { } ~S3Simulator() { } const ConfigurationVerify* GetConfigVerify() const; |