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

Timeout option on Gateway #42

Open
rmja opened this issue Nov 8, 2016 · 0 comments
Open

Timeout option on Gateway #42

rmja opened this issue Nov 8, 2016 · 0 comments

Comments

@rmja
Copy link

rmja commented Nov 8, 2016

It would be nice if the timeout option of the underlying HttpClient was exposed somehow. I am currently adjusting the timeout like this:

services.AddHttpRequestDispatcherProvider(new HttpRequestDispatcherProvider(() =>
            {
                var dispatcher = new HttpRequestDispatcher();
                dispatcher.Timeout = TimeSpan.FromMinutes(10);
                return dispatcher;
            }, null, new[] { new AlwaysTreatedAsNonTransientExceptionHandler() }, null));

But that is far from beautiful:) The 100s default timeout is not enough for some of the long running jobs that I have...

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

No branches or pull requests

1 participant