From: Haijun Zhu Date: Thu, 5 Nov 2015 18:36:46 +0000 (-0800) Subject: codemod setMaxNumMessagesInQueue to setMaxNumPendingConnectionsPerWorker X-Git-Tag: deprecate-dynamic-initializer~274 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=131db1206830ee07ef89bceb41c1f3c598764685;p=folly.git codemod setMaxNumMessagesInQueue to setMaxNumPendingConnectionsPerWorker 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 --- diff --git a/folly/io/async/AsyncServerSocket.h b/folly/io/async/AsyncServerSocket.h index d423d5f3..0546f54c 100644 --- a/folly/io/async/AsyncServerSocket.h +++ b/folly/io/async/AsyncServerSocket.h @@ -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; }