baidu / sofa-pbrpc

A light-weight RPC implement of google protobuf RPC framework.
Other
2.13k stars 655 forks source link

RpcChannelOptions的connect_timeout是否支持呢 #209

Open liuyajun52 opened 6 years ago

liuyajun52 commented 6 years ago

https://github.com/baidu/sofa-pbrpc/blob/c2cf3522e017260201dc6ea16c68acd025d6102c/src/sofa/pbrpc/rpc_channel.h#L20-L28

你好,我在看代码的时候发现connect_timeout被注释为Not supported now,但是在 https://github.com/baidu/sofa-pbrpc/blob/c2cf3522e017260201dc6ea16c68acd025d6102c/src/sofa/pbrpc/rpc_client_impl.cc#L382

https://github.com/baidu/sofa-pbrpc/blob/c2cf3522e017260201dc6ea16c68acd025d6102c/src/sofa/pbrpc/rpc_byte_stream.h#L110-L115

中,似乎有检查了超时,所以,到底是否支持超时设置呢,单位又是毫秒还是秒呢