Workaround for bug 698882. nsSocketTransportService::PollTimeout should return 5 seconds at least. Should be consulted with mobile people if we won't waste battery with this.
we should strive to be event driven and not wakeup at all without an event.. 698882 does indeed look like a mess but let's not change wakeup behavior on firefox for a TB issue.. so I'd like to WONTFIX it unless you feel strongly..
And what about doing it only during the shutdown?
Hmm.. but when we are already stuck, it won't help much... I think there used to be some small timeout so that we looped once in a while. Maybe there even is one now, have to check it.