Skip to content
Snippets Groups Projects
Commit aba18786 authored by sgjesse@google.com's avatar sgjesse@google.com
Browse files

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/pkg/mime@43835 260f80e4-7a28-3924-810f-c04153c831b5
parent a469a155
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment