Currently network problems can kill the long poller with no notice to the user. Put a timeout on it and restart it after a while if there's no reply from the server.