Open Bug 1372410 Opened 7 years ago Updated 2 years ago

Consider implementing close-at-EOF behavior for string input stream

Categories

(Core :: XPCOM, enhancement, P3)

53 Branch
enhancement

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

Details

See bug 1333899 comment 57 for why this would be nice.

We need to be careful about two things if we do this:

1)  We need to implement the reopen-on-seek behavior file streams have; multiplex input stream depends on its streasm doing that.

2)  We _may_ need to change HttpBaseChannel::ExplicitSetUploadStream to NS_BASE_STREAM_CLOSED from Available as NS_OK and a 0 length.  This might not be needed if we do our "we're EOF, so close" bits from Read/ReadSegments, instead of SetData.

Either way, this would involve being able to "close the stream but not clear out the data" so we can do that "reopen on seek" thing.
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.