-
Notifications
You must be signed in to change notification settings - Fork 163
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
SDK stops working throwing System.TimeoutException for all requests after random time #710
Comments
We have increased the connection pool size in the app.config of our application and it looks like this is preventing this issue. But I think this should only be a temporary workaround because this may have other side effects like increased memory usage.
|
@ChristianGalla Thanks for reporting the bug. We will take a look at it and respond ASAP. |
I am facing this same issue. I implemented the suggested workaround but the issue continues. I am curious if anyone has additional details or an alternate workaround. |
I'm using .Net Core 3.1 and have the same problem. I get a How do I set |
Hi all, If you want to further increase the number of possible connections, you can do the following: Thanks, |
Description of the Issue
We are using the SDK in a long running console application to upload many files to Box. Many copies of the application are running at the same time.
After some random time, it is not possible to download files anymore and all calls of BoxClient.FilesManager.DownloadAsync are throwing System.TimeoutException.
Other application instances are not directly affected but may fail at another time.
Steps to Reproduce
Randomly after some hours, days or even weeks the API stops working and all calls of BoxClient.FilesManager.DownloadAsync are throwing System.TimeoutException.
This happens even for small csv files. It is possible to access the files via Box website even between two calls of this function.
Without success I have tried to retry calls to this method after some seconds delay. Even manual recreation of the Box session did not help. Reconnecting to Box is not throwing an error.
The only workaround I have found is to restart the application.
Expected Behavior
The SDK keeps working.
Error Message, Including Stack Trace
Possible cause of this issue
I had a look at the implementation of the SDK and I think this looks like a connection pool starvation of the HttpClient.
My guess is a missing dispose of a failed HttpResponseMessage in HttpRequestHandler.ExecuteAsync before the request is retried (not tested).
Versions Used
.Net SDK: 3.24.0
Windows: Server 2012 R2
The text was updated successfully, but these errors were encountered: