From 131db1206830ee07ef89bceb41c1f3c598764685 Mon Sep 17 00:00:00 2001 From: Haijun Zhu Date: Thu, 5 Nov 2015 10:36:46 -0800 Subject: [PATCH] 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 --- folly/io/async/AsyncServerSocket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1