> -----Original Message----- > From: Anne van Kesteren [mailto:[email protected]] > Sent: Wednesday, March 07, 2012 12:49 AM > To: Arun Ranganathan; Feras Moussa > Cc: Adrian Bateman; [email protected]; Ian Hickson > Subject: Re: [FileAPI] Deterministic release of Blob proposal
> On Wed, 07 Mar 2012 02:12:39 +0100, Feras Moussa <[email protected]> > wrote: > >> xhr.send(blob); > >> blob.close(); // method name TBD > > > > In our implementation, this case would fail. We think this is > > reasonable because the need for having a close() method is to allow > > deterministic release of the resource. > > Reasonable or not, "would fail" is not something we can put in a standard. > What happens exactly? What if a connection is established and data is being > transmitted already? In the case where close was called on a Blob that is being used in a pending request, then the request should be canceled. The expected result is the same as if abort() was called.
