packages/net/gatling/patches/020-configure_features.patch
Martin Hübner 83ff83e320 gatling: add package gatling
Gatling is a high-performance webserver from fefe. It gives a
fairly decent feature-set at really small size. And its fast.

Co-authored-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Signed-off-by: Martin Hübner <martin.hubner@web.de>
2022-09-23 13:41:49 -07:00

30 lines
881 B
Diff

gatling: configure features
Disables SMB-support, as only deprecated SMBv1 is supported,
which most users wouldn't use anyway. Avoids potential
vulnerabilities.
Activates threaded opening: Thus gatling will open files in
threads to open kernel I/O scheduling opportunities.
Signed-off-by: Martin Hübner <martin.hubner@web.de>
--- a/gatling_features.h
+++ b/gatling_features.h
@@ -7,7 +7,7 @@
#define SUPPORT_SERVERSTATUS
// #define SUPPORT_DAV
-#define SUPPORT_SMB
+// #define SUPPORT_SMB
#define SUPPORT_FTP
#define SUPPORT_PROXY
/* #define DEBUG to enable more verbose debug messages for tracking fd
@@ -36,7 +36,7 @@
#define SUPPORT_FALLBACK_REDIR
/* open files in threads to open kernel I/O scheduling opportunities */
-#undef SUPPORT_THREADED_OPEN
+#define SUPPORT_THREADED_OPEN
/* try to divine MIME type by looking at content */
#define SUPPORT_MIMEMAGIC