From 8419ca87f953998bf03858bc483b9494dcfee86b Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 3 Jun 2017 22:25:44 +0800 Subject: [PATCH] Fix KEEP_ALIVE_DURATION value I intended to specify 7 seconds, which should be 7000 milliseconds --- src/base/http/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/http/server.cpp b/src/base/http/server.cpp index b3cd02168..5bd96ad56 100644 --- a/src/base/http/server.cpp +++ b/src/base/http/server.cpp @@ -43,7 +43,7 @@ #include "connection.h" -static const int KEEP_ALIVE_DURATION = 7; // seconds +static const int KEEP_ALIVE_DURATION = 7 * 1000; // milliseconds static const int CONNECTIONS_LIMIT = 500; static const int CONNECTIONS_SCAN_INTERVAL = 2; // seconds