RpcServerOptions
- RpcServerOptions定义了RpcServer的服务器选项, 包括以下内容:
– 工作线程数目
– 空闲连接的最大持续时间
– 在一个连接中的最大的pending大小
– 最大的入口、出口带宽
– 工作线程启动、销毁前执行的函数
RpcServerOptions定义
struct RpcServerOptions
{
int work_thread_num;
int keep_alive_time;
int max_pending_buffer_size;
int max_through_in;
int max_through_out;
bool disable_builtin_services;
bool disable_list_service;
ExtClosure<bool()>* work_thread_init_func;
ExtClosure<bool()>* work_th