Article View: news.software.nntp
Article #63179Re: Is this a valid Message-ID?
From: David Magda
Date: Wed, 15 Jan 2003 23:19
Date: Wed, 15 Jan 2003 23:19
42 lines
3186 bytes
3186 bytes
curt@kcwc.com (Curt Welch) writes: [...] > You aren't dealing correctly with the birthday paridox which results from > the fact that any MID in the set can collide with any other MID in the set > to cause a problem. You only only thinking about the probability of on MID > being generated colliding with all the others that had already been > generated. [...] Doesn't the birthday paradox assume some sort of random/even distribution. The chance of one person being born on a certain day, is the same chance as anyone else. We do not want random MIDs, we want unique. If proper practice would be for NNTP servers to offer an MID, and clients to accept/use it there would be better odds of having unique MIDs. Failing that, having an alogrithm that would have the RHS as at least the domain (or perhaps the the $NNTPSERVER hostname), and the LHS being a combination of: data, time (to second/millisecond), PID (where available), and the number of the article posted during the duration of this program session. All these added, or hashed (SHA-1?), would have some semblance of uniqueness. If you're hashing you may want to add the first couple of bytes/lines from the message body. Obviously malicious/incompetent things like clock/time changing can't really be helped. Even the silly day-light savings time can cause problems. But if the same program is running (with the same PID) when the time is changed, then the counting of messages would prevent that. If the DST occurs, and the program is restarted then at least it will have a different PID. Of course does Windows have PIDs? -- David Magda <dmagda at ee.ryerson.ca> Because the innovator has for enemies all those who have done well under the old conditions, and lukewarm defenders in those who may do well under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
Technical Details
Message-ID:
<86wul6m26w.fsf@number6.magda.ca>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mailReferences:
<4o6cfxfd2.ln2@thune.mrc-home.org> <1rvg0sbd7t.fsf@vingodur.ifi.uio.no> <8dqRqDeocDD@3247.org> <20030114132134.418$09@newsreader.com> <yld6mz8s6f.fsf@windlord.stanford.edu> <20030114171106.956$rG@newsreader.com> <b02cai.bg.1@Heiko.Studt.dialin.t-online.de> <20030114220738.208$sD@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <86wul6m26w.fsf@number6.magda.ca> Subject: Re: Is this a valid Message-ID? Date: Wed, 15 Jan 2003 23:19:03 +0000 From: David Magda <dmagda+usenet@ee.ryerson.ca> References: <4o6cfxfd2.ln2@thune.mrc-home.org> <1rvg0sbd7t.fsf@vingodur.ifi.uio.no> <8dqRqDeocDD@3247.org> <20030114132134.418$09@newsreader.com> <yld6mz8s6f.fsf@windlord.stanford.edu> <20030114171106.956$rG@newsreader.com> <b02cai.bg.1@Heiko.Studt.dialin.t-online.de> <20030114220738.208$sD@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Sender: dmagda@number6.magda.ca Newsgroups: news.software.nntp User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Lines: 41 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 64.229.227.247 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1042672740 64.229.227.247 (Wed, 15 Jan 2003 18:19:00 EST) NNTP-Posting-Date: Wed, 15 Jan 2003 18:19:00 EST Organization: Bell Sympatico