From f84556c622c39893bfbcdb7477d5a7bea774d4bf Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Mon, 16 Dec 2024 01:23:17 -0800 Subject: [PATCH] Updated HTTP call to use a deadline set to the distant future to use the configuration's timeouts directly --- Sources/WebPush/WebPushManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WebPush/WebPushManager.swift b/Sources/WebPush/WebPushManager.swift index 6460d7c..b4d74f8 100644 --- a/Sources/WebPush/WebPushManager.swift +++ b/Sources/WebPush/WebPushManager.swift @@ -394,7 +394,7 @@ public actor WebPushManager: Sendable { request.body = .bytes(ByteBuffer(bytes: requestContent)) /// Send the request to the push endpoint. - let response = try await httpClient.execute(request, deadline: .now() + .seconds(2), logger: logger) + let response = try await httpClient.execute(request, deadline: .distantFuture, logger: logger) /// Check the response and determine if the subscription should be removed from our records, or if the notification should just be skipped. switch response.status {