X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.Net%2FChunkedInputStream.cs;h=4c7c744140b2f5becaab29587a1de91eb4ce1e45;hb=e7951e6ee0786855af92d677d5fb20fe14f5ecdf;hp=2ee49937e54a6c5018da298828ae9f0378e4d52d;hpb=538d3bb80572334c18ae117ea7703406a4a22872;p=mono.git diff --git a/mcs/class/System/System.Net/ChunkedInputStream.cs b/mcs/class/System/System.Net/ChunkedInputStream.cs index 2ee49937e54..4c7c744140b 100644 --- a/mcs/class/System/System.Net/ChunkedInputStream.cs +++ b/mcs/class/System/System.Net/ChunkedInputStream.cs @@ -24,7 +24,10 @@ // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -#if NET_2_0 + +#if NET_2_0 && SECURITY_DEP + +using System.IO; using System.Net.Sockets; using System.Runtime.InteropServices; namespace System.Net { @@ -51,9 +54,9 @@ namespace System.Net { } } - public ChunkedInputStream (HttpListenerContext context, Socket sock, + public ChunkedInputStream (HttpListenerContext context, Stream stream, byte [] buffer, int offset, int length) - : base (sock, buffer, offset, length) + : base (stream, buffer, offset, length) { this.context = context; WebHeaderCollection coll = (WebHeaderCollection) context.Request.Headers; @@ -156,7 +159,7 @@ namespace System.Net { ares.AsyncWaitHandle.WaitOne (); if (my_ares.Error != null) - throw new HttpListenerException (400, "I/O operation aborted."); + throw new HttpListenerException (400, "I/O operation aborted: " + my_ares.Error.Message); return my_ares.Count; }