From 6277dcbf16ad8da7a6f6f27655f212ccd06c5ac1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 29 Aug 2015 08:46:57 +0000 Subject: Increase S3Simulator HTTP timeout to aid debugging --- lib/httpserver/HTTPServer.cpp | 4 ++-- lib/httpserver/HTTPServer.h | 3 ++- lib/httpserver/S3Simulator.h | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'lib/httpserver') 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 { 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; -- cgit v1.2.3