Closed Bug 716293 Opened 14 years ago Closed 14 years ago

IO on the main thread caused by nsDiskCacheOutputStream::Close()

Categories

(Core :: Networking: Cache, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: michal, Assigned: michal)

References

Details

Attachments

(1 file, 1 obsolete file)

nsDiskCacheOutputStream::Close() is called on the main thread if all nsInputStreamTeeWriteEvent events finish before nsStreamListenerTee::OnStartRequest() is called.
Comment on attachment 586742 [details] [diff] [review] fix - release sink on the same thread where the data is written Review of attachment 586742 [details] [diff] [review]: ----------------------------------------------------------------- Looks reasonable - does it pass tryserver? Is there a way we can have a test for this? Please re-request review after addressing the above questions. ::: netwerk/base/src/nsStreamListenerTee.cpp @@ +67,5 @@ > if (mInputTee) { > mInputTee->SetSink(nsnull); > mInputTee = 0; > } > + Nit: Please add a comment including the bug-number.
Attachment #586742 - Flags: review?(bjarne)
(In reply to Bjarne (:bjarne) from comment #2) > Looks reasonable - does it pass tryserver? No, it doesn't. But tryserver is useless these days. result with patch: https://tbpl.mozilla.org/?tree=Try&rev=96d185e8731e result without it: https://tbpl.mozilla.org/?tree=Try&rev=bd7e5b7b5ea3 > Is there a way we can have a test for this? I don't see a way how to test it.
Attachment #586742 - Attachment is obsolete: true
Attachment #587008 - Flags: review?(bjarne)
Comment on attachment 587008 [details] [diff] [review] patch v2 - added a comment Review of attachment 587008 [details] [diff] [review]: ----------------------------------------------------------------- Code looks ok. Would be more happy if it passed try and/or had a test, but fair enough...
Attachment #587008 - Flags: review?(bjarne) → review+
Whiteboard: [inbound]
Target Milestone: --- → mozilla12
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: