summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 0594f7fde5..c37ab22640 100644
--- a/src/log.c
+++ b/src/log.c
@@ -33,6 +33,8 @@
#include "macro.h"
#include "socket-util.h"
+#define SNDBUF_SIZE (8*1024*1024)
+
static LogTarget log_target = LOG_TARGET_CONSOLE;
static int log_max_level = LOG_INFO;
@@ -127,6 +129,8 @@ static int create_log_socket(int type) {
if (fd < 0)
return -errno;
+ fd_inc_sndbuf(fd, SNDBUF_SIZE);
+
return fd;
}