omnip620 / node-zookeeper-dubbo

A middleware helps node to communicate dubbo by using its default protocol, which is registered in zookeeper
300 stars 80 forks source link

err处理问题 #18

Closed bingo-xie closed 8 years ago

bingo-xie commented 8 years ago

client.on('error', function (err) { self._execute(method, args, host); }); 如果服务端口变了,就会触发error,这样写就会一直错下去,不会有返回值,是不是去重新获取一下zk上注册的provider,然后再试一次,不行抛异常呢?

omnip620 commented 8 years ago

可以 我们考虑下 未来的版本会加上

Sent from my iPhone

On Sep 2, 2016, at 18:00, master-xie notifications@github.com wrote:

client.on('error', function (err) { self._execute(method, args, host); }); 如果服务端口变了,就会触发error,这样写就会一直错下去,不会有返回值,是不是去重新获取一下zk上注册的provider,然后再试一次,不行抛异常呢?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

bingo-xie commented 8 years ago

好的

omnip620 commented 8 years ago

@master-xie 你们这边改端口也是会通知到zk的 对吧

bingo-xie commented 8 years ago

是的,zk随时都是最新的

omnip620 commented 8 years ago

试下新版本的

bingo-xie commented 8 years ago

嗯 昨天试过了 赞!