react-native-static-server icon indicating copy to clipboard operation
react-native-static-server copied to clipboard

Server is killed on iOS seemingly randomly and inconsistently

Open raymondjacobson opened this issue 5 years ago • 2 comments

Hi -- I'm using this project in a production application and observing a bizarre behavior where the server seems to randomly get killed by iOS. It's incredibly inconsistent (sometimes on first load, sometimes after app is backgrounded for a while, sometimes in the foreground) and I've been able to go many hours in a session (foreground, background, etc.) without this happening too.

Has anyone experienced anything similar or have any ideas on how to diagnose?

I've added a 500ms interval that pings the server and restarts it is it's down (this doesn't work). Maybe the OS is killing the interval as well? I've also added checks on app-to-foreground on server health and tried restarting, but those also don't seem to work either.

Thank you so much!

raymondjacobson avatar Feb 06 '20 18:02 raymondjacobson

@raymondjacobson Did you ever find any workarounds or solutions to this problem?

dexterlohnes avatar Jul 23 '20 04:07 dexterlohnes