Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
32f937a
add canary test application
xiazhvera Aug 8, 2025
c1ac072
remove prints & lint
xiazhvera Aug 8, 2025
30752a6
fix typo and swift6
xiazhvera Aug 8, 2025
6f4aff3
Merge branch 'main' into mqtt5canary
xiazhvera Aug 8, 2025
08af44a
update crt
xiazhvera Aug 12, 2025
2726d12
wip:add canary codebuild script
xiazhvera Aug 14, 2025
c6dc5c6
update canary
xiazhvera Aug 15, 2025
ebe0d8d
clean up canary
xiazhvera Aug 19, 2025
e740943
update canary with create/destroy client
xiazhvera Aug 19, 2025
fd767da
Merge branch 'mqtt5canary' of https://github.com/awslabs/aws-crt-swif…
xiazhvera Aug 20, 2025
492e6d5
fix merge
xiazhvera Aug 20, 2025
adb5f77
Merge branch 'main' of https://github.com/awslabs/aws-crt-swift into …
xiazhvera Aug 25, 2025
4e99197
trigger codebuild
xiazhvera Aug 26, 2025
496a6bc
update tps control
xiazhvera Aug 26, 2025
fae745d
trigger codebuild
xiazhvera Aug 27, 2025
0654de0
revert package.swift changes
xiazhvera Aug 27, 2025
58598e8
clean up canary
xiazhvera Aug 28, 2025
656beb7
Merge branch 'main' of https://github.com/awslabs/aws-crt-swift into …
xiazhvera Aug 28, 2025
c26551d
clean up comments
xiazhvera Aug 28, 2025
a082fdf
Canary Script Update (#350)
xiazhvera Sep 9, 2025
eb11734
correct the log path
xiazhvera Sep 9, 2025
8d53857
remove internal links
xiazhvera Sep 9, 2025
2b50d24
use default s3 bucket
xiazhvera Sep 10, 2025
058fbf3
updat cr changes
xiazhvera Sep 17, 2025
5a29508
update kqueue script
xiazhvera Sep 19, 2025
7b93eb4
use datetime string for metrics name dimension
xiazhvera Sep 19, 2025
71d18e9
address code review
xiazhvera Sep 19, 2025
e7f8ce1
update lint
xiazhvera Sep 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions Source/AwsCommonRuntimeKit/mqtt/Mqtt5Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,18 @@ public typealias OnPublishReceived = @Sendable (PublishReceivedData) -> Void
public typealias OnLifecycleEventStopped = @Sendable (LifecycleStoppedData) -> Void

/// Defines signature of the Lifecycle Event Attempting Connect callback
public typealias OnLifecycleEventAttemptingConnect = @Sendable (LifecycleAttemptingConnectData) ->
public typealias OnLifecycleEventAttemptingConnect =
@Sendable (LifecycleAttemptingConnectData) ->
Void

/// Defines signature of the Lifecycle Event Connection Success callback
public typealias OnLifecycleEventConnectionSuccess = @Sendable (LifecycleConnectionSuccessData) ->
public typealias OnLifecycleEventConnectionSuccess =
@Sendable (LifecycleConnectionSuccessData) ->
Void

/// Defines signature of the Lifecycle Event Connection Failure callback
public typealias OnLifecycleEventConnectionFailure = @Sendable (LifecycleConnectionFailureData) ->
public typealias OnLifecycleEventConnectionFailure =
@Sendable (LifecycleConnectionFailureData) ->
Void

/// Defines signature of the Lifecycle Event Disconnection callback
Expand All @@ -127,9 +130,10 @@ public typealias OnWebSocketHandshakeInterceptComplete = @Sendable (HTTPRequestB
/// such as signing/authorization etc... Returning from this function does not continue the websocket
/// handshake since some work flows may be asynchronous. To accommodate that, onComplete must be invoked upon
/// completion of the signing process.
public typealias OnWebSocketHandshakeIntercept = @Sendable (
HTTPRequest, @escaping OnWebSocketHandshakeInterceptComplete
) -> Void
public typealias OnWebSocketHandshakeIntercept =
@Sendable (
HTTPRequest, @escaping OnWebSocketHandshakeInterceptComplete
) -> Void

// MARK: - Mqtt5 Client
public final class Mqtt5Client: Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private func MqttRRStreamingOperationIncomingPublishCallback(
let operationCore = Unmanaged<StreamingOperationCore>.fromOpaque(userData).takeUnretainedValue()
operationCore.rwlock.read {
// Only invoke the callback if the streaming operation is not closed.
if operationCore.rawValue != nil, operationCore.options.incomingPublishEventHandler != nil {
if operationCore.rawValue != nil {
let incomingPublishEvent = IncomingPublishEvent(publishEvent)
operationCore.options.incomingPublishEventHandler(incomingPublishEvent)
}
Expand All @@ -267,7 +267,7 @@ private func MqttRRStreamingOperationSubscriptionStatusCallback(
let operationCore = Unmanaged<StreamingOperationCore>.fromOpaque(userData).takeUnretainedValue()
operationCore.rwlock.read {
// Only invoke the callback if the streaming operation is not closed.
if operationCore.rawValue != nil, operationCore.options.subscriptionStatusEventHandler != nil {
if operationCore.rawValue != nil {
let subStatusEvent = SubscriptionStatusEvent(
event: SubscriptionStatusEventType(eventType),
error: errorCode == 0 ? nil : CRTError(code: Int32(errorCode)))
Expand Down
Loading