Add Error_msg (but no Error_no) when client closes connection during handshake.

This commit is contained in:
Daniel Nichter
2013-02-01 10:58:27 -07:00
parent 572294540c
commit ea4dfa7605
4 changed files with 5 additions and 0 deletions

View File

@@ -3140,6 +3140,7 @@ sub parse_event {
arg => 'administrator command: Connect',
ts => $packet->{ts},
};
$session->{attribs}->{Error_msg} = 'Client closed connection during handshake';
$event = $self->_make_event($event, $packet, $session);
delete $self->{sessions}->{$session->{client}};
return $event;

View File

@@ -348,6 +348,7 @@ sub parse_event {
arg => 'administrator command: Connect',
ts => $packet->{ts},
};
$session->{attribs}->{Error_msg} = 'Client closed connection during handshake';
$event = $self->_make_event($event, $packet, $session);
delete $self->{sessions}->{$session->{client}};
return $event;

View File

@@ -1708,6 +1708,7 @@ test_protocol_parser(
pos_in_log => undef,
ts => '130124 12:55:48.274417',
user => undef,
Error_msg => 'Client closed connection during handshake',
}
],
);
@@ -1739,6 +1740,7 @@ test_protocol_parser(
pos_in_log => undef,
ts => '130122 09:55:57.793375',
user => undef,
Error_msg => 'Client closed connection during handshake',
},
],
);

View File

@@ -21,6 +21,7 @@
# Query size 100 30 30 30 30 30 0 30
# Warning coun 0 0 0 0 0 0 0 0
# String:
# Error msg Client closed connection during handshake
# Hosts 100.0.0.2
# Query_time distribution
# 1us