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

Request timed out #2176

Open
dongzhaosheng73 opened this issue Mar 21, 2024 · 1 comment
Open

Request timed out #2176

dongzhaosheng73 opened this issue Mar 21, 2024 · 1 comment
Labels

Comments

@dongzhaosheng73
Copy link

dongzhaosheng73 commented Mar 21, 2024

Describe the bug
The client occasionally sends System.TimeoutException: Request timed out
---> System.Threading.Tasks.TaskCanceledException: A task was canceled. The error client occasionally sends System.TimeoutException: Request timed out
---> System.Threading.Tasks.TaskCanceledException: A task was canceled. mistake.

To Reproduce
In random recurrence, either the client must be restarted or HttpClient must use a new socket.
I found that there were already similar problems but there was no practical solution.

#1092

Expected behavior
Request timed out should not affect subsequent request behavior
Request timed out Subsequent requests will cause the Request timed out until the client restarts

Stack trace
Copy the full stack trace here if you get an exception.

Desktop (please complete the following information):

  • OS: win11
  • .NET version .net 6
  • Version 108.0.2
@alexeyzimarev
Copy link
Member

I can add a test that would execute a series of calls using the same client instance, timing out at random. If that test won't reproduce the issue, I don't think there will be any follow up on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants