mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 21:19:59 +00:00
Add Error_msg (but no Error_no) when client closes connection during handshake.
This commit is contained in:
@@ -3140,6 +3140,7 @@ sub parse_event {
|
|||||||
arg => 'administrator command: Connect',
|
arg => 'administrator command: Connect',
|
||||||
ts => $packet->{ts},
|
ts => $packet->{ts},
|
||||||
};
|
};
|
||||||
|
$session->{attribs}->{Error_msg} = 'Client closed connection during handshake';
|
||||||
$event = $self->_make_event($event, $packet, $session);
|
$event = $self->_make_event($event, $packet, $session);
|
||||||
delete $self->{sessions}->{$session->{client}};
|
delete $self->{sessions}->{$session->{client}};
|
||||||
return $event;
|
return $event;
|
||||||
|
@@ -348,6 +348,7 @@ sub parse_event {
|
|||||||
arg => 'administrator command: Connect',
|
arg => 'administrator command: Connect',
|
||||||
ts => $packet->{ts},
|
ts => $packet->{ts},
|
||||||
};
|
};
|
||||||
|
$session->{attribs}->{Error_msg} = 'Client closed connection during handshake';
|
||||||
$event = $self->_make_event($event, $packet, $session);
|
$event = $self->_make_event($event, $packet, $session);
|
||||||
delete $self->{sessions}->{$session->{client}};
|
delete $self->{sessions}->{$session->{client}};
|
||||||
return $event;
|
return $event;
|
||||||
|
@@ -1708,6 +1708,7 @@ test_protocol_parser(
|
|||||||
pos_in_log => undef,
|
pos_in_log => undef,
|
||||||
ts => '130124 12:55:48.274417',
|
ts => '130124 12:55:48.274417',
|
||||||
user => undef,
|
user => undef,
|
||||||
|
Error_msg => 'Client closed connection during handshake',
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
@@ -1739,6 +1740,7 @@ test_protocol_parser(
|
|||||||
pos_in_log => undef,
|
pos_in_log => undef,
|
||||||
ts => '130122 09:55:57.793375',
|
ts => '130122 09:55:57.793375',
|
||||||
user => undef,
|
user => undef,
|
||||||
|
Error_msg => 'Client closed connection during handshake',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
# Query size 100 30 30 30 30 30 0 30
|
# Query size 100 30 30 30 30 30 0 30
|
||||||
# Warning coun 0 0 0 0 0 0 0 0
|
# Warning coun 0 0 0 0 0 0 0 0
|
||||||
# String:
|
# String:
|
||||||
|
# Error msg Client closed connection during handshake
|
||||||
# Hosts 100.0.0.2
|
# Hosts 100.0.0.2
|
||||||
# Query_time distribution
|
# Query_time distribution
|
||||||
# 1us
|
# 1us
|
||||||
|
Reference in New Issue
Block a user