On Tue, 2007-08-28 at 23:04 -0400, Charlie Brady wrote: > > On 28-Aug-07, at 3:51 PM, JT Moree wrote: > >>> hires_time.pid.local_port > ... > >> my $conn = $args{connection}; > >> my $ip = $conn->local_port || "0"; > >> my $start = time; > >> my $id = "$start.$$.$ip"; > >> > >> Some people have suggested adding the remote IP address. I'm > curious > >> why use local port instead of remote port? would both be better? > > > > Err, actually I had a brain fart. It should be remote_port. > > No, it should be remote_IP.remote_port.local_port and should include > a > transaction_within_connection count. I don't think that pid adds > anything. > > > >
This does not guarantee a unique message ID. That's why we are using hi_res time. -- --gh