Merge pull request #1404 from woodsb02/mono-route
[mono.git] / mcs / class / System / Test / System.Net.Security / SslStreamTest.cs
index c9b067ef6ba987fa378ac6db6ac1a1d849e0c784..39849d5bef9bc9c8db77d9fd0bf1a61c23ae4aa9 100644 (file)
@@ -177,7 +177,11 @@ public class SslStreamTest {
                                                (a1, a2, a3, a4, a5) => m_clientCert);
                        state.ClientStream.AuthenticateAsClient ("test_host");
                        state.ClientAuthenticated.Set ();
-               } catch (ObjectDisposedException) { /* this can happen when closing connection it's irrelevant for the test result*/}
+               } catch (ObjectDisposedException) { /* this can happen when closing connection it's irrelevant for the test result*/
+               } catch (IOException) {
+                       if (!state.ServerIOException)
+                               throw;
+               }
        }
 
        private void StartServerAndAuthenticate (ClientServerState state) {