Closed Bug 29950 Opened 25 years ago Closed 16 years ago

prevent concurrent writers of the newsrc file

Categories

(MailNews Core :: Backend, defect, P3)

x86
All
defect

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
moving to m16.
Target Milestone: M16
really accepting this time.
Status: NEW → ASSIGNED
doesn't look critical to beta2, marking M18. You should have a feature bug that depends on this...
Target Milestone: M16 → M18
clearing milestone, m17 and m18 are meaningless now. these need to be triages along with the rest.
Target Milestone: M18 → ---
QA Contact: lchiang → stephend
Product: MailNews → Core
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
Filter on "Nobody_NScomTLD_20080620"
QA Contact: stephend → backend
Product: Core → MailNews Core
Joshua, can you imagine that this is still possible?
Severity: normal → critical
*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.