Skip to content

fix RCTBundleURLProvider crash when failing to check isPackagerRunning#55761

Open
vzaidman wants to merge 1 commit intofacebook:mainfrom
vzaidman:export-D94382277
Open

fix RCTBundleURLProvider crash when failing to check isPackagerRunning#55761
vzaidman wants to merge 1 commit intofacebook:mainfrom
vzaidman:export-D94382277

Conversation

@vzaidman
Copy link
Contributor

Summary:
In certain situations, where there are network issues reaching the Dev Server, the app crashes because of waiting too long on a semaphore.

Instead, reduce the timeout on the /status request to 6 seconds, which is plenty of time to validate that the Dev Server is running, and reduce the timeout for the semaphore to 8 seconds, in case the request still won't finish by then.

Changelog: [iOS][Fixed] not crashing on network issues with connecting to DevServer

Differential Revision: D94382277

Summary:
In certain situations, where there are network issues reaching the Dev Server, the app crashes because of waiting too long on a semaphore.

Instead, reduce the timeout on the `/status` request to 6 seconds, which is plenty of time to validate that the Dev Server is running, and reduce the timeout for the semaphore to 8 seconds, in case the request still won't finish by then.

Changelog: [iOS][Fixed] not crashing on network issues with connecting to DevServer

Differential Revision: D94382277
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 25, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 25, 2026

@vzaidman has exported this pull request. If you are a Meta employee, you can view the originating Diff in D94382277.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants