From 5f0065825a869fd31f5cf52a51b218f4402bf380 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sun, 12 Sep 2021 19:42:14 +0200 Subject: [PATCH] Update EpollEchoServerPubSub.cpp --- fuzzing/EpollEchoServerPubSub.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fuzzing/EpollEchoServerPubSub.cpp b/fuzzing/EpollEchoServerPubSub.cpp index 490e85b..86f84af 100644 --- a/fuzzing/EpollEchoServerPubSub.cpp +++ b/fuzzing/EpollEchoServerPubSub.cpp @@ -29,12 +29,12 @@ void test() { app->ws("/*", { /* Settings */ .compression = uWS::DISABLED, - .maxPayloadLength = 16 * 1024 * 1024, + .maxPayloadLength = 512, // also have a low value here for fuzzing .idleTimeout = 60, - .maxBackpressure = 16 * 1024 * 1024, - .closeOnBackpressureLimit = false, - .resetIdleTimeoutOnSend = true, - .sendPingsAutomatically = false, + .maxBackpressure = 128, // we want a low number so that we can reach this in fuzzing + .closeOnBackpressureLimit = false, // this one could be tested as well + .resetIdleTimeoutOnSend = true, // and this + .sendPingsAutomatically = false, // and this /* Handlers */ .upgrade = nullptr, .open = [](auto *ws) {