-
Notifications
You must be signed in to change notification settings - Fork 244
MinioClient generates a lot of connections in TIME_WAIT #313
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
Comments
Using dotnet core 2.1or the images yields the same results. |
@DynamicOperationsFacilitator Thanks for reporting this issue. We will take a look at it. |
This perhaps because dotnet client is not able to effectively use keep-alive |
We can use HttpClientFactory to create HttpClient in MinioClient or cache the HttpClients. |
Run into the same problem, issue #364 Read more: HttpClient is thread-safe since Framework 4.5, don't know what happens in previous versions. |
Hi, has this issue been resolved? This issue may potentially make .net program unstable. |
I think MinioClient uses RestSharp behind the scenes. RestSharp currently have an open issue that could be related: restsharp/RestSharp#1322? |
We moved away from RestSharp with a full re-implementation with HttpClientFactory |
Uh oh!
There was an error while loading. Please reload this page.
I ran into some stability problems while listing and downloading metadata from one of our services using Minio. I've traced it down to the RestSharp dependency in the minio-dotnet client. I've added a comment regarding this in an existing issue in the RestSharp repo restsharp/RestSharp#1322
To reproduce issue I've made two equivalent scripts for .net core 2.2 using the most recent (at this time) version of the Minio SDK as well as the Amazon SDK as a reference. You can download them from this gist: https://gist.github.com/DynamicOperationsFacilitator/fc3148bad05552fd5138a12c79399c17
While listing buckets in an infinite loop isn't really a normal workload. it's a fast operation that highlights the difference in how well persistent HTTP connections work in minio-dotnet vs. awssdk.s3
Example of how to run:
Sample output from running netstat in each container:
The text was updated successfully, but these errors were encountered: