I am finding so many Android OS bugs... lol.. The entire emulator crashes on DNS resolution alone. I wish I knew how to get deeper stack traces to send it upstream.
Discussion
Best solution is to install amethystOS on our phones after you fix everything lol
This is to be expected for a novel operating system that's just been out for ... oh wait.
To be fair, I don't think anyone has ever tried to open 10000 websocket connections to different servers before.
Apparently the A in Amethyst stands for DDoS.
Route harder, not smarter.
Story of my life.
Supporting Android is never a simple task. There's always some whacky bug on certain API levels in anything you do. I actually started going straight to using android.system.Os whenever possible to avoid the java code.