Files
sdk/pkg/mime/lib
sgjesse@google.com f44c9f3b6c Fix bug in subscription handling in mime package
The parser now parses each received chunk to the end no matter what the
paused state of the part stream is. This will add data to the part
stream controller before it is even listened on, but only the data already
received from the original input stream.

Not trying to stop the parsing on a received chunk when the part stream
is paused makes the code simpler to reason about.

The two added tests modes failed without this change. Either by hanging
or by hitting an exception trying to invoke the getter 'length' on null.

R=kustermann@google.com
BUG=

Review URL: https://codereview.chromium.org//934763004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43835 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-18 07:27:48 +00:00
..