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

fix: Disable connection pool as workaround for async runtime hang #474

Merged
merged 2 commits into from
Jul 26, 2022

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Jul 26, 2022

Signed-off-by: Xuanwo github@xuanwo.io

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Related to #473

@Xuanwo Xuanwo marked this pull request as ready for review July 26, 2022 06:36
Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo Xuanwo merged commit 3040294 into main Jul 26, 2022
@Xuanwo Xuanwo deleted the fix-hyper-hang branch July 26, 2022 06:55
// Disable connection pool to address weird async runtime hang.
//
// ref: https://github.com/datafuselabs/opendal/issues/473
.pool_max_idle_per_host(0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it have performance issue if we turn off ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does, but not very seriously.

Most object storage services (like AWS S3, OSS, COS) will use http/2, which has its own connection stream and doesn't need http/1.1's keep-alive.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, aws s3 always returns Connection: close

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.

2 participants