From 0e902a80abd48364c076a3ac079ca3b5ffe1056f Mon Sep 17 00:00:00 2001 From: Neale Ferguson Date: Wed, 10 Oct 2012 20:21:09 -0400 Subject: [PATCH] Increase flushinput timeout to 1 second as 1/10th second is sometimes not enough --- mcs/class/System/System.Net/HttpListenerRequest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcs/class/System/System.Net/HttpListenerRequest.cs b/mcs/class/System/System.Net/HttpListenerRequest.cs index efa4f56acb9..92866e6485c 100644 --- a/mcs/class/System/System.Net/HttpListenerRequest.cs +++ b/mcs/class/System/System.Net/HttpListenerRequest.cs @@ -319,7 +319,7 @@ namespace System.Net { // TODO: test if MS has a timeout when doing this try { IAsyncResult ares = InputStream.BeginRead (bytes, 0, length, null, null); - if (!ares.IsCompleted && !ares.AsyncWaitHandle.WaitOne (100)) + if (!ares.IsCompleted && !ares.AsyncWaitHandle.WaitOne (1000)) return false; if (InputStream.EndRead (ares) <= 0) return true; -- 2.25.1