Replace MSG_PEEK with a pre-received data interface.
[folly.git] / folly / io / ShutdownSocketSet.h
index a395e13ae4d5f586ed8c5cab93fc458657e47fb9..f74bf48a66a722fddfa2692d5a953704d8f8fffd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -37,7 +37,7 @@ class ShutdownSocketSet : private boost::noncopyable {
    * applications, even if you increased the number of file descriptors
    * on your system.
    */
-  explicit ShutdownSocketSet(size_t maxFd = 1 << 18);
+  explicit ShutdownSocketSet(int maxFd = 1 << 18);
 
   /**
    * Add an already open socket to the list of sockets managed by
@@ -112,7 +112,7 @@ class ShutdownSocketSet : private boost::noncopyable {
     }
   };
 
-  const size_t maxFd_;
+  const int maxFd_;
   std::unique_ptr<std::atomic<uint8_t>[], Free> data_;
   folly::File nullFile_;
 };