improved xhr timeout detection; fixed sse stream reconnect on timeout