You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hu...@apache.org on 2021/08/05 08:20:50 UTC
[dubbo-js] branch master updated: refactor: less time more retry
This is an automated email from the ASF dual-hosted git repository.
hufeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-js.git
The following commit(s) were added to refs/heads/master by this push:
new e0e6d0f refactor: less time more retry
e0e6d0f is described below
commit e0e6d0f722f4c953ca80122e3ab76d0934614f2a
Author: hufeng <fe...@gmail.com>
AuthorDate: Thu Aug 5 16:19:24 2021 +0800
refactor: less time more retry
---
packages/dubbo-consumer/src/dubbo-tcp-transport.ts | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/packages/dubbo-consumer/src/dubbo-tcp-transport.ts b/packages/dubbo-consumer/src/dubbo-tcp-transport.ts
index 706d16f..07c2265 100644
--- a/packages/dubbo-consumer/src/dubbo-tcp-transport.ts
+++ b/packages/dubbo-consumer/src/dubbo-tcp-transport.ts
@@ -37,7 +37,8 @@ const log = debug('dubbo:tcp-transport ~')
* 3.socket断开自动重试
*/
export default class DubboTcpTransport
- implements IDubboObservable<IDubboTransportSubscriber> {
+ implements IDubboObservable<IDubboTransportSubscriber>
+{
public readonly host: string
private _status: STATUS
private forceClose: boolean
@@ -60,8 +61,8 @@ export default class DubboTcpTransport
}
this.retry = new Retry({
- maxRetry: 20,
- delay: 3000,
+ maxRetry: 120,
+ delay: 500,
retry: () => {
this._status = STATUS.RETRY
this.init()