This sample project demonstrate how the Timeout when using HttpClientTimeoutHandler
does not include reading the response unlike the default HttpClient
behavior. It's similar to using HttpCompletionOption.ResponseHeadersRead
.
HttpClientTimeoutHandler is from https://www.thomaslevesque.com/2018/02/25/better-timeout-handling-with-httpclient/.
Also, the code directly in the post does not use .ConfigureAwait(false)
and it should.
Related articles: