thrift client pool
- 编译:
cd example && go build
- 启动server
./example
- 启动普通client
./example -mod client
or 启动池化client./example -mod client-pool
- test
go test .
默认1000个请求; 不使用连接池TIME_WAIT状态数增加了1000个, 而使用连接池TIME_WAIT状态数增加了2个
thrift client pool
cd example && go build
./example
./example -mod client
or 启动池化client ./example -mod client-pool
go test .
默认1000个请求; 不使用连接池TIME_WAIT状态数增加了1000个, 而使用连接池TIME_WAIT状态数增加了2个