Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RpcChannelOptions的connect_timeout是否支持呢 #209

Open
liuyajun52 opened this issue Sep 18, 2017 · 0 comments
Open

RpcChannelOptions的connect_timeout是否支持呢 #209

liuyajun52 opened this issue Sep 18, 2017 · 0 comments

Comments

@liuyajun52
Copy link

struct RpcChannelOptions {
// Connect timeout (in seconds).
// If a request can't get an healthy connection after a connect_timeout
// milliseconds, it will fail and return to the caller.
//
// Not supported now.
int64 connect_timeout;

你好,我在看代码的时候发现connect_timeout被注释为Not supported now,但是在

stream->set_connect_timeout(_options.connect_timeout);

if (_connect_timeout > 0)
{
_timer.expires_from_now(boost::posix_time::milliseconds(_connect_timeout));
_timer.async_wait(boost::bind(&RpcByteStream::on_connect_timeout, shared_from_this(), _1));
}
}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant