Skip to content

Commit 5f902ad

Browse files
authored
External ticket timout fix
Increase timeout from standard 100 seconds to 30minutes
1 parent de178fd commit 5f902ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/lib/files/FWO.Tufin.SecureChange/ExternalTicket.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected async Task<RestResponse<int>> RestCall(RestRequest request, string res
6262
request.AddHeader("Content-Type", "application/json");
6363
request.AddHeader("Authorization", TicketSystem.Authorization);
6464
request.AddHeader("Accept", "application/json");
65-
RestClientOptions restClientOptions = new();
65+
RestClientOptions restClientOptions = new RestClientOptions() { Timeout = TimeSpan.FromMinutes(30) };
6666
restClientOptions.RemoteCertificateValidationCallback += (_, _, _, _) => true;
6767
restClientOptions.BaseUrl = new Uri(TicketSystem.Url);
6868
RestClient restClient = new(restClientOptions, null, ConfigureRestClientSerialization);

0 commit comments

Comments
 (0)