Skip to content

Conversation

anthonyguella
Copy link
Contributor

@anthonyguella anthonyguella commented Jul 2, 2025

Issue #, if available:
#37

Description of changes:

  • Wrapped the AppSyncWebSocketClient request in a lock, providing thread safe access. This prevents a potential crash from concurrent read/writes.

Testing:

  • Verified solution is working via a unit test.

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

@anthonyguella anthonyguella requested a review from a team as a code owner July 2, 2025 18:17
@thisisabhash thisisabhash changed the title [Issue-37] Fix URLRequest Race Condition fix: make UrlRequest property thread safe Jul 2, 2025
@thisisabhash thisisabhash changed the title fix: make UrlRequest property thread safe fix: make URLRequest property thread safe Jul 2, 2025
@anthonyguella anthonyguella force-pushed the bugfix-37/requestRaceCondition branch from 398eb88 to d78ad56 Compare July 2, 2025 19:26
@anthonyguella anthonyguella force-pushed the bugfix-37/requestRaceCondition branch from d78ad56 to 6a2c080 Compare July 2, 2025 19:34
[Changes]
- Wrapped the AppSyncWebSocketClient request in a lock, providing thread safe access. This prevents a potential crash from concurrent read/writes.

[Testing]
- Verified solution is working via a unit test.

Motivation: aws-amplify#37
@thisisabhash thisisabhash merged commit 531b5bc into aws-amplify:main Jul 2, 2025
11 of 13 checks passed
@thisisabhash
Copy link
Member

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