Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 527 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 527 Bytes

thrift-client-pool

thrift client pool

usage

参考: example/client.go

example

  1. 编译: cd example && go build
  2. 启动server ./example
  3. 启动普通client ./example -mod client or 启动池化client ./example -mod client-pool
  4. test go test .

效果

默认1000个请求; 不使用连接池TIME_WAIT状态数增加了1000个, 而使用连接池TIME_WAIT状态数增加了2个