/// <summary> /// After a redirect, expect connect timeout accessing the redirect location, /// because the connection backlog is consumed. /// </summary> /// <exception cref="System.Exception"/> public virtual void TestRedirectConnectTimeout() { StartSingleTemporaryRedirectResponseThread(true); try { fs.GetFileChecksum(new Path("/file")); NUnit.Framework.Assert.Fail("expected timeout"); } catch (SocketTimeoutException e) { NUnit.Framework.Assert.AreEqual("connect timed out", e.Message); } }