awslabs / aws-mobile-appsync-sdk-ios

iOS SDK for AWS AppSync.
https://awslabs.github.io/aws-mobile-appsync-sdk-ios/
Other
262 stars 130 forks source link

fix: Making `APIKeyBasedConnectionPool` thread safe #596

Closed ruisebas closed 6 months ago

ruisebas commented 6 months ago

Issue #, if available:

Description of changes:

This PR fixes crashes happening in APIKeyBasedConnectionPool by adding a queue to sync access to the endPointToProvider dictionary. A previous fix was applied to IAMBasedConnectionPool here: https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/569

Additionally, I'm fixing some tests no longer compiling after upgrading to the latest SDK version.


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