On Fri, 24 Aug 2007, Guy Hulbert wrote:

> > These are the approaches suggested so far.  I added the last one as a
> > combination of the others.  Can we see a show of hands for the one
>
> Using rand is bogus.  A random number generator will repeat values.
>
> Time (with sufficient resolution) is equivalent to a sequence ... but
> with threads, you would need a lock on the sequence generator.

fqdn + time + peer TCP port will be pretty unique, regardless of
whether you're forking, selecting, or threading.  (fortunately,
multiplexed SMTP does not yet exist.)

Looks like remote_port is  set in qpsmtpd-forkserver, at least..

James




Reply via email to