diff options
-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; |