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

feat: Retry and timeout #53

Merged
merged 3 commits into from
Dec 17, 2023
Merged

feat: Retry and timeout #53

merged 3 commits into from
Dec 17, 2023

Conversation

YDX-2147483647
Copy link
Owner

@YDX-2147483647 YDX-2147483647 commented Dec 12, 2023

  • ky 替换fetch,从而设置重试(retry:默认2次)、超时(timeout:默认10 s)。

  • 新增插件 retry 及配置retry: { delay: number}

Resolves #45

@YDX-2147483647 YDX-2147483647 mentioned this pull request Dec 12, 2023
@YDX-2147483647
Copy link
Owner Author

YDX-2147483647 commented Dec 12, 2023

虽然没解决超时,但至少不会卡死了。


更新:刚才好像是运行错了。现在运行完全正常。

再更新:超时是间歇性的。

@YDX-2147483647 YDX-2147483647 marked this pull request as ready for review December 12, 2023 14:43
@YDX-2147483647
Copy link
Owner Author

测了六天,效果不错。

#48 (comment)

@YDX-2147483647 YDX-2147483647 merged commit 366ab51 into deno Dec 17, 2023
@YDX-2147483647 YDX-2147483647 deleted the ky branch December 17, 2023 12:03
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

Successfully merging this pull request may close these issues.

1 participant