question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Unexpected timeouts observed against local Azure Function cold-starts]

See original GitHub issue

Summary: Report by @toddmeinershagen in #517 of TimeoutPolicy causing hangs when used with HttpClientFactory

Expected behavior: TimeoutPolicy with HttpClientFactory does not cause hangs when used with HttpClientFactory

Reported behaviour: TimeoutPolicy with HttpClientFactory causes hangs when used with HttpClientFactory

Steps / Code to reproduce the problem: not supplied.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
toddmeinershagencommented, Oct 20, 2018

@reisenberger - I appreciate the dialog and ideas. I did try your suggestion of running the Azure function in a separate instance of Visual Studio and got the same results. However, when I published the function to the cloud and ran the client locally, it ran fine.

My guess is that there is some kind of optimization going on when running locally. The interesting thing is that the call never makes it to the function. So, whatever mechanics go on to handle the webhooks triggering do not work well in that scenario.

0reactions
reisenbergercommented, Oct 20, 2018

@toddmeinershagen Haven’t time to join you digging deeper at mo into the local Azure Function cold-start issues, unfortunately (time must go to other Polly issues), but interested what you find if you want to report back later. Thoughts were that you might see if the same issue reproduces when the Azure function is run out of (say) a different Visual Studio instance; or indeed simply run up on Azure rather than locally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Functions timeout in cold start
When an Azure Function is cold starting, it can take more than ten seconds, and the Playfab ExecuteFunction times out.
Read more >
Azure Function execution speed is extremely slow and ...
Function Apps go into a "cold" state after five minutes of inactivity. When they come out of the cold state you can expect...
Read more >
App settings reference for Azure Functions
Reference documentation for the Azure Functions app settings or environment variables used to configure functions apps.
Read more >
How to tackle the cold start problem of Azure Function ...
The cold start of the function worker can cause a delay of up to 7–10 seconds, which is not good. And some client...
Read more >
Cold Starts in Azure Functions
Probability of a cold start happening before minute X​​ As you can see, some cold starts happen earlier than 10 minutes, some instances...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found