Skip to content

Commit 77936d9

Browse files
authored
Adjust request timeout in outbound http client (#959)
1 parent 0a566b9 commit 77936d9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Events/Configuration/EventsOutboundSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ public class EventsOutboundSettings
88
/// <summary>
99
/// The number of seconds the event push http client will wait for a response before timing out.
1010
/// </summary>
11-
public int RequestTimeout { get; set; } = 300;
11+
public int RequestTimeout { get; set; } = 45;
1212
}

src/Events/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"JwtCookieName": "AltinnStudioRuntime"
1414
},
1515
"EventsOutboundSettings": {
16-
"RequestTimeout": 300
16+
"RequestTimeout": 45
1717
},
1818
"QueueStorageSettings": {
1919
"RegistrationQueueName": "events-registration",

test/Altinn.Platform.Events.Tests/TestingServices/WebhookServiceTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void Ctor_HttpClientHasRequestTimeout()
4343
_ = new WebhookService(actualClient, null, _eventsOutboundSettings, loggerMock.Object);
4444

4545
// Assert
46-
Assert.Equal(300, actualClient.Timeout.TotalSeconds);
46+
Assert.Equal(45, actualClient.Timeout.TotalSeconds);
4747
}
4848

4949
[Fact]

0 commit comments

Comments
 (0)