From 0a09c5b09c4013b79648ab091495c767ef06c315 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 4 Feb 2021 13:29:18 +0100 Subject: #1022 increase maximum API REST request size Software inventory generates a request larger that 64 Kbytes. Rise the maximum API REST request size to 128 Kbytes. --- src/rest.h | 2 +- tests/units/test_0014_big_request.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest.h b/src/rest.h index 58d25c7..b8e4500 100644 --- a/src/rest.h +++ b/src/rest.h @@ -37,7 +37,7 @@ enum og_cmd_type { OG_CMD_MAX }; -#define OG_MSG_REQUEST_MAXLEN 65536 +#define OG_MSG_REQUEST_MAXLEN 131072 struct og_client { struct list_head list; diff --git a/tests/units/test_0014_big_request.py b/tests/units/test_0014_big_request.py index 48f0cb2..2d9d861 100644 --- a/tests/units/test_0014_big_request.py +++ b/tests/units/test_0014_big_request.py @@ -1,7 +1,7 @@ import requests import unittest -MAX_REQ_SIZE = 65536 +MAX_REQ_SIZE = 131072 class TestBigRequest(unittest.TestCase): -- cgit v1.2.3-18-g5258