summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rhdropbox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rhdropbox.c b/rhdropbox.c
index 234d24d..5dc889b 100644
--- a/rhdropbox.c
+++ b/rhdropbox.c
@@ -404,6 +404,8 @@ int main_loop(int cmd_listen_fd, int inotify_fd, options_t* opt)
FD_SET(new_fd, &readfds);
max_fd = (max_fd < new_fd) ? new_fd : max_fd;
fcntl(new_fd, F_SETFL, O_NONBLOCK);
+ int o_sndbuf = 128*1024;
+ setsockopt(new_fd, SOL_SOCKET, SO_SNDBUF, &o_sndbuf, sizeof o_sndbuf);
client_add(&client_lst, new_fd);
}