diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-02-09 03:51:11 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-02-09 03:51:11 +0000 |
commit | 7aa09c164ef2482f5d9281fe59c913c8d3b0d748 (patch) | |
tree | 9969052337997fedee4d9c09731363ca4fa93531 | |
parent | d8c206be3f375e31863999c917bd56746a46264f (diff) | |
download | cmogstored-7aa09c164ef2482f5d9281fe59c913c8d3b0d748.tar.gz |
Fortunately we only deal with LANs.
-rw-r--r-- | bind_listen.c | 12 |
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) |