mysql-binlog-connector-java
mysql-binlog-connector-java copied to clipboard
binlog-connector should hang up on MySQL gracefully
The current implementation of BinaryLogClient::disconnect closes the underlying socket with only a TCP RST packet. To release any resources allocated on the server, the client should send COM_QUIT (MySQL protocol).
This was considered at some level before (https://github.com/shyiko/mysql-binlog-connector-java/issues/72) but I'm not sure why it was not implemented.