|
|
@ -48,10 +48,11 @@ namespace grpc { |
|
|
|
namespace { |
|
|
|
namespace { |
|
|
|
|
|
|
|
|
|
|
|
// The default value for maximum number of threads that can be created in the
|
|
|
|
// The default value for maximum number of threads that can be created in the
|
|
|
|
// sync server. This value of 500 is empirically chosen. To increase the max
|
|
|
|
// sync server. This value of INT_MAX is chose to match the default behavior if
|
|
|
|
// number of threads in a sync server, pass a custom ResourceQuota object (with
|
|
|
|
// no ResourceQuota is set. To modify the max number of threads in a sync
|
|
|
|
// the desired number of max-threads set) to the server builder
|
|
|
|
// server, pass a custom ResourceQuota object (with the desired number of
|
|
|
|
#define DEFAULT_MAX_SYNC_SERVER_THREADS 500 |
|
|
|
// max-threads set) to the server builder.
|
|
|
|
|
|
|
|
#define DEFAULT_MAX_SYNC_SERVER_THREADS INT_MAX |
|
|
|
|
|
|
|
|
|
|
|
class DefaultGlobalCallbacks final : public Server::GlobalCallbacks { |
|
|
|
class DefaultGlobalCallbacks final : public Server::GlobalCallbacks { |
|
|
|
public: |
|
|
|
public: |
|
|
|