Closed
Bug 29950
Opened 25 years ago
Closed 16 years ago
prevent concurrent writers of the newsrc file
Categories
(MailNews Core :: Backend, defect, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: sspitzer, Unassigned)
Details
this may not be a problem right now, but it may possible for us to corrupt the
newsrc file by having two concurrent callers of
nsNntpIncomingServer::WriteNewsrcFile()
I'm thinking ahead to when we have a nntp protocol cache, or mutliple three
panes, stand alone message window, etc.
this relates to the folder locking bugs #20548 #12850
Reporter | ||
Comment 2•25 years ago
|
||
accepting.
Comment 4•25 years ago
|
||
doesn't look critical to beta2, marking M18. You should have a feature bug that
depends on this...
Target Milestone: M16 → M18
Reporter | ||
Comment 5•24 years ago
|
||
clearing milestone, m17 and m18 are meaningless now. these need to be triages
along with the rest.
Target Milestone: M18 → ---
Updated•20 years ago
|
Product: MailNews → Core
Comment 6•18 years ago
|
||
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Status: ASSIGNED → NEW
Assignee | ||
Updated•17 years ago
|
Product: Core → MailNews Core
Comment 8•16 years ago
|
||
Joshua, can you imagine that this is still possible?
Severity: normal → critical
Comment 9•16 years ago
|
||
*chews on code for a while
So WriteNewsrcFile is called from three places:
1. The timer (which is initialized on, and therefore the callbacks executed on) the main thread.
2. CloseCachedConnections -- again only executed on the main thread.
3. CommitSubscribeChanges -- again, only on the main thread.
File I/O is synchronous, so no other events can run while we're writing the newsrc file--so it can only happen if we have multiple threads concurrently calling the function. That is so problematic for our code in general that it's no worse than the rest of the code.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•