Skip to content

hongweikkx/thrift-client-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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个

About

thrift client pool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published