Skip to content

How to set Ocelot HttpConnection timeout? #1832

Answered by raman-m
SamYuann asked this question in Q&A
Discussion options

You must be logged in to vote

@SamYuann commented on Jan 2, 2019

Sam, welcome to Ocelot world!


I think this is HttpConnection Timeout

Why do you think so? I don't see any problems at all! Your request was finished in 34.134 seconds with successful status code 200 aka OK. What's the problem, my dear? 😉
So, QoS Timeout policy wasn't applied (34 is less than 60). 😄
And default HttpClient timeout is 90 secs:

And if QoS value is defined then it is used instead of default 90 secs value:

            var timeout = downstreamRoute.QosOptions.TimeoutValue == 0
                ? _defaul…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;)
3 participants
Converted from issue

This discussion was converted from issue #731 on December 04, 2023 18:13.