]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/net_handler.cc: Do not apply SO_REUSEADDR for FreeBSD 12593/head
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 20 Dec 2016 18:43:47 +0000 (19:43 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 20 Dec 2016 18:43:47 +0000 (19:43 +0100)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/msg/async/net_handler.cc

index 59f703fe20eb105f8aa2b2ee2576f95c07a9190d..3ab1855da9f659228766485471945f9c7bb363d5 100644 (file)
@@ -40,6 +40,7 @@ int NetHandler::create_socket(int domain, bool reuse_addr)
     return -errno;
   }
 
+#if !defined(__FreeBSD__)
   /* Make sure connection-intensive things like the benchmark
    * will be able to close/open sockets a zillion of times */
   if (reuse_addr) {
@@ -50,6 +51,7 @@ int NetHandler::create_socket(int domain, bool reuse_addr)
       return -errno;
     }
   }
+#endif
 
   return s;
 }