Changed Keep-Alive timeout from 60 to 3600

This commit is contained in:
2020-09-25 16:30:27 +02:00
parent f5e46200a0
commit 74c4f846e7

View File

@ -226,7 +226,7 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col
try { try {
if (req.isExistingField("Connection") && req.getField("Connection") == "keep-alive") { if (req.isExistingField("Connection") && req.getField("Connection") == "keep-alive") {
req.setField("Connection", "keep-alive"); req.setField("Connection", "keep-alive");
req.setField("Keep-Alive", "timeout=60, max=100"); req.setField("Keep-Alive", "timeout=3600, max=100");
} else { } else {
req.setField("Connection", "close"); req.setField("Connection", "close");
error = true; error = true;