--sry,没理解您的答复,看注释的意思是等待注册中心通知延迟。
关于第三个问题,在2.6.1中ProtocolConfig类中,destroyAll方法包含如下sleep代码。2.6.2中将此部分sleep代码删除了。
see HeaderExchangeServer#isRunning:
private boolean isRunning() {
Collection<Channel> channels = getChannels();
for (Channel channel : channels) {
if (DefaultFuture.hasFuture(channel)) {
/**
* If there are any client connections,
* our server should be running.
*/
if (channel.isConnected()) {
return true;
}
}
If there is a client connection, it will automatically wait, there was a bug
before, so will invoke sleep
[ Full content available at:
https://github.com/apache/incubator-dubbo/issues/2525 ]
This message was relayed via gitbox.apache.org for [email protected]