about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-02-09 03:51:11 +0000
committerEric Wong <normalperson@yhbt.net>2012-02-09 03:51:11 +0000
commit7aa09c164ef2482f5d9281fe59c913c8d3b0d748 (patch)
tree9969052337997fedee4d9c09731363ca4fa93531
parentd8c206be3f375e31863999c917bd56746a46264f (diff)
downloadcmogstored-7aa09c164ef2482f5d9281fe59c913c8d3b0d748.tar.gz
Fortunately we only deal with LANs.
-rw-r--r--bind_listen.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/bind_listen.c b/bind_listen.c
index fad6116..34d38e7 100644
--- a/bind_listen.c
+++ b/bind_listen.c
@@ -13,10 +13,16 @@
 #ifdef TCP_DEFER_ACCEPT
 static int set_accept_filter(int fd, const char *accept_filter)
 {
-        int val = 1;
-        socklen_t len = sizeof(int);
+        /*
+         * Disabled for now, weird kernel bug with insane/unrealistic
+         * concurrency that causes writev() responses to not go
+         * anywhere for several seconds.
+         *
+         * TODO: investigate and generate a test case for
+         * netdev@vger.kernel.org.
+         */
 
-        return setsockopt(fd, IPPROTO_TCP, TCP_DEFER_ACCEPT, &val, len);
+        return 0;
 }
 #else /* !TCP_DEFER_ACCEPT */
 static int set_accept_filter(int fd, const char *accept_filter)