Skip to content
Discussion options

You must be logged in to vote

When does the timer for HttpClient.Timeout start and when does it stop? Basically, I want the timeout to start after SendAsync and stop once ResponseHeaders are received.

It starts when SendAsync is called. It stops when the task returned from SendAsync completes, so when headers are completed with HttpCompletionOption.ResponseHeadersRead or when the body is completed with HttpCompletionOption.ResponseContentRead.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TonyValenti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants