]> git.ipfire.org Git - fireperf.git/commitdiff
client+server: Process fewer epoll events in one go
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Jan 2021 14:31:58 +0000 (14:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Jan 2021 14:31:58 +0000 (14:31 +0000)
This will allow us to terminate quicker because we will evaluate the
outer while loop more often which should be a rather cheap operation.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/main.h

index fe7193697941958fad2daa17c7d4bc6e11fc8b58..de8654b1217a68d9fa16e9187a9cc014bcda100d 100644 (file)
@@ -35,7 +35,7 @@
 // Set the size of the read/write buffer to 1 MiB
 #define BUFFER_SIZE      1048576
 
-#define EPOLL_MAX_EVENTS 1024
+#define EPOLL_MAX_EVENTS 128
 
 struct fireperf_config {
        int terminated;