Skip to content

Commit 430cb59

Browse files
authored
Fixed an issue where push messages were never sent over HTTP as an incorrect timeout was specified (#8)
1 parent bfb4fa4 commit 430cb59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/WebPush/WebPushManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ public actor WebPushManager: Sendable {
371371
request.body = .bytes(ByteBuffer(bytes: requestContent))
372372

373373
/// Send the request to the push endpoint.
374-
let response = try await httpClient.execute(request, deadline: .now(), logger: logger)
374+
let response = try await httpClient.execute(request, deadline: .now() + .seconds(2), logger: logger)
375375

376376
/// Check the response and determine if the subscription should be removed from our records, or if the notification should just be skipped.
377377
switch response.status {

0 commit comments

Comments
 (0)