codemod setMaxNumMessagesInQueue to setMaxNumPendingConnectionsPerWorker
authorHaijun Zhu <haijunz@fb.com>
Thu, 5 Nov 2015 18:36:46 +0000 (10:36 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Thu, 5 Nov 2015 19:20:24 +0000 (11:20 -0800)
Summary: This name's meaning is very obscure, this method actually sets the
queue size of each acceptor and if all acceptor's queues are full the
connection will be dropped. Change it to a more meaningful name.

Reviewed By: alandau

Differential Revision: D2613681

fb-gh-sync-id: baa374cdf0a87c460df3dd5687e3d755b55f4b4f

folly/io/async/AsyncServerSocket.h

index d423d5f35b68d2b49140791675f332c42eb87c4f..0546f54c69584faa90283e3a0efb660ee7f66894 100644 (file)
@@ -539,7 +539,7 @@ class AsyncServerSocket : public DelayedDestruction
    *
    * Only works if called before addAcceptCallback.
    */
-  void setMaxNumMessagesInQueue(uint32_t num) {
+  void setMaxNumPendingConnectionsPerWorker(uint32_t num) {
     maxNumMsgsInQueue_ = num;
   }