Skip to content

Conversation

anthonyguella
Copy link
Contributor

Issue #, if available:
#40

Description of changes:
WebSocketTransport holds a strong reference to AppSyncWebSocketClient, and vice versa. This causes a retain cycle that can be solved by making AppSyncWebSocketClient's delegate reference weak.

Testing:
Verified solution via memory graph debugger.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Description of changes:
WebSocketTransport holds a strong reference to AppSyncWebSocketClient, and vice versa. This causes a retain cycle that can be solved by making AppSyncWebSocketClient's reference weak.

Testing:
Verified solution via memory graph debugger.
@anthonyguella anthonyguella requested a review from a team as a code owner August 13, 2025 18:53
@thisisabhash thisisabhash merged commit 2cbfe28 into aws-amplify:main Aug 13, 2025
8 of 9 checks passed
@anthonyguella anthonyguella deleted the anthkgue/memoryLeakFix branch August 13, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants