Skip to content

Commit

Permalink
#7 extended LongUrlService timeout to 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-ward committed Jan 13, 2021
1 parent d9f1756 commit 8f96e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tweetz.core/Services/LongUrlService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static async ValueTask<string> TryGetLongUrlAsync(string link)

var request = WebRequest.Create(new Uri(link));
request.Method = "HEAD";
const int timeoutInMilliseconds = 2000;
const int timeoutInMilliseconds = 5000;
request.Timeout = timeoutInMilliseconds;

using var response = await request.GetResponseAsync().ConfigureAwait(false);
Expand Down

0 comments on commit 8f96e5c

Please sign in to comment.