Charlie Brady wrote:
On Tue, 28 Aug 2007, Matt Sergeant 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.
You could still have a machine with several IP's / interfaces, so
emote_IP.remote_port.local_port.transaction_within_connection is not
enough either.
-Johan