diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-01 23:09:35 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-01 23:13:44 +0200 |
commit | 2be0826959c68aa0dd756ee4437db1883887d8ce (patch) | |
tree | 4c9b89c122ff2a7e7168d81ab5f2ddca2b7e2cdb /include | |
parent | 7252558689827a095aa70ee6f30175e2e73eb36b (diff) |
connection: Shrink buffers from 1KB to 256B each
Diffstat (limited to 'include')
-rw-r--r-- | include/connection.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <stddef.h> #include <stdint.h> -#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; |