Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Fix infinite retry loop #1248

Merged
merged 1 commit into from
Mar 2, 2019
Merged

Fix infinite retry loop #1248

merged 1 commit into from
Mar 2, 2019

Conversation

msand
Copy link
Contributor

@msand msand commented Dec 12, 2018

(Together with a pr to react-native facebook/react-native#22625)
Fixes facebook/react-native#21030

@msand
Copy link
Contributor Author

msand commented Dec 19, 2018

This pr isn't intended to be merged as is, merely to point out where the logic needs to be improved and as a quick temporary override if people want to monkeypatch things.

@msand
Copy link
Contributor Author

msand commented Dec 19, 2018

Counting the number of consecutive errors without a single successful connection attempt and stopping after three or something, would probably already be better than a infinite retry loop.

@msand
Copy link
Contributor Author

msand commented Feb 10, 2019

@gaearon @bvaughn What do you think of this? This and facebook/react-native#22625 are affecting the DX of react-native developers outside facebook quite significantly, as their logs inside xcode get several reconnection attempt failures per second, hiding any real errors in an ocean of noise. And, even making their computers crash (not just xcode) because of excessive memory and port usage from it.

@msand
Copy link
Contributor Author

msand commented Mar 2, 2019

The other PR has been merged and released in react-native 0.58-stable (v0.58.6) and 0.59-stable (v0.59.0-rc.3). Could we get this merged as well. I've cherry picked this on top of 3.4.2 and 3.6.0 of react-devtools and made build commits available of react-devtools-core on github, and given instructions how to avoid the issue here: facebook/react-native#21030
But getting this merged and possibly even released with react-native 0.59.0 would be ideal.
@bvaughn @gaearon Would either one of you have time to look at this?

@msand
Copy link
Contributor Author

msand commented Mar 2, 2019

I think this issue is giving quite a bad impression for both newcomers to react-native, and long term developers. As the logs just keep filling up with errors about connection issues. Even if devtools and the inspector are working perfectly fine. Seems like the default setup for a clean react-native project shouldn't fill up the Xcode logs with noise when developing for iOS. Or is there something missing in the configuration/documentation?

Copy link
Contributor

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine.

@bvaughn bvaughn merged commit 52099bc into facebook:master Mar 2, 2019
@bvaughn
Copy link
Contributor

bvaughn commented Mar 4, 2019

3.6.1 has been published to NPM with this fix.

@msand
Copy link
Contributor Author

msand commented Mar 5, 2019

Excellent, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants