From 2be0826959c68aa0dd756ee4437db1883887d8ce Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sat, 1 Aug 2020 23:09:35 +0200 Subject: connection: Shrink buffers from 1KB to 256B each --- include/connection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/connection.h') diff --git a/include/connection.h b/include/connection.h index 6c57901..3e15403 100644 --- a/include/connection.h +++ b/include/connection.h @@ -4,9 +4,9 @@ #include #include -#define CONNECTION_BUFFER_SIZE 1024 +#define CONNECTION_BUFFER_SIZE 256 -#define MAX_FDS_OUT 8 +#define MAX_FDS (CONNECTION_BUFFER_SIZE / sizeof(int)) struct connection_buffer { uint32_t head, tail; -- cgit v1.2.3