Open Bug 1255604 Opened 10 years ago Updated 1 year ago

NS_InputStreamIsBuffered() and NS_OutputStreamIsBuffered() should treat WOULD_BLOCK as buffered

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

People

(Reporter: bkelly, Unassigned)

References

Details

Attachments

(1 file)

As I mentioned in bug 1255070 comment 0, if a stream returns NS_BASE_STREAM_WOULD_BLOCK from ReadSegments() or WriteSegments(), then our IsBuffered() methods treat the stream as unbuffered. This is wrong. Just because a stream is async does not mean it is unbuffered. We should explicitly treat these streams as buffered.
Assignee: ben → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: