summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-04-26 13:52:19 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-04-26 13:52:19 (GMT)
commitfe7b2b27ef3992aaf1d9bc3e708a4fdfda9cba40 (patch)
tree176a9ac73bdc93f56d1b0aaf5857145ab11d8e8e
parent50232efb98704f6af0d48be8ffb7cc99e36ed0e3 (diff)
increased sndbuf for unix sockets
-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);
}