Closed Bug 412867 Opened 17 years ago Closed 17 years ago

nsSimpleStreamListener needs to autoclose mSink IFF !mObserver

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: timeless, Assigned: timeless)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached patch close only if !mObserver (deleted) — Splinter Review
while reviewing possible approaches for transferring data from a Channel to an OutputStream, biesi suggested nsSimpleStreamListener. Unfortunately, it's simply buggy in the simple case, because there's no way for anyone to know that it's done.
Attachment #297651 - Flags: review?(cbiesinger)
Blocks: 412877
No longer blocks: 412877
Blocks: 121059
Attachment #297651 - Flags: review?(cbiesinger) → review+
Attachment #297651 - Flags: approval1.9?
Comment on attachment 297651 [details] [diff] [review] close only if !mObserver a1.9+=damons
Attachment #297651 - Flags: approval1.9? → approval1.9+
Attachment #297651 - Flags: approval1.9b3?
Attachment #297651 - Flags: approval1.9b3? → approval1.9b3-
Comment on attachment 297651 [details] [diff] [review] close only if !mObserver mozilla/netwerk/base/src/nsSimpleStreamListener.cpp 1.10
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
ok, it turns out that one can try to know that a stream has received all the data it wants by being in control of the input and relying on everything being sync from the input.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: