> If you leave out any of the local info, an installation with two
> servers with un-synced times could still gen the same id. if you add
> it, then the only way you could have a collision is if your time is
> not granular enough or gets set back.

I'm ok with that

 Using HiRes::Time

my $lip = $conn->local_ip();
my $rip = $conn->remote_ip();
my $rport = $conn->remote_port || "0";
my $lport = $conn->local_port || "0";
my $start = time;
my $id = "$$_$start_$lip:$lport_$rip:$rport";

-- 
JT Moree

Reply via email to