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

超时重试设置无效 #28

Open
smartbinbin opened this issue Jul 16, 2018 · 1 comment
Open

超时重试设置无效 #28

smartbinbin opened this issue Jul 16, 2018 · 1 comment

Comments

@smartbinbin
Copy link

设置为0或者注释掉还是有4次重试

@smartbinbin
Copy link
Author

smartbinbin commented Jul 16, 2018

问题找到了,框架这两个变量的get方法判断≤0就取默认值,这里改成<0就可以了

    public int getRetryDelayMillis() {
        if (retryDelayMillis <= 0) {
            retryDelayMillis = ViseConfig.DEFAULT_RETRY_DELAY_MILLIS;
        }
        return retryDelayMillis;
    }

    public int getRetryCount() {
        if (retryCount <= 0) {
            retryCount = ViseConfig.DEFAULT_RETRY_COUNT;
        }
        return retryCount;
    }

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