Removed DeflateStream.UnmanagedRead Read loop. Fixes #19313.
authormarcos henrich <marcoshenrich@gmail.com>
Mon, 2 Jun 2014 07:22:33 +0000 (08:22 +0100)
committermarcos henrich <marcoshenrich@gmail.com>
Mon, 2 Jun 2014 07:22:33 +0000 (08:22 +0100)
commit6a6631d8838d2531ba16c31c7096011456c20fd2
treeba69c6939eb0e3cbef3cb68ab326804ef2879a7c
parent19f48e7920a915c04a4a81e8859a1fd17cde32aa
Removed DeflateStream.UnmanagedRead Read loop. Fixes #19313.
If the base_stream was a NetworkStream UnmanagedRead loop would call base_stream.Read a second time and block until one byte was available to return. Without the loop UnmanagedRead will only read the base_stream once.
mcs/class/System/System.IO.Compression/DeflateStream.cs