Fix setPaused crash app

Also added `setKeepAlive` and `setNoDelay` for android, but still get `ECONNRESET` error.