KAFKA-2298; Client Selector can drop connections on InvalidReceiveException without notifying NetworkClient; reviewed by Jason Gustafson and Joel Koshy

This commit is contained in:
Dong Lin 2015-07-07 18:09:00 -07:00 committed by Joel Koshy
parent f13dd8024d
commit 23d72bccbe
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ public class Selector implements Selectable {
} catch (InvalidReceiveException e) {
log.error("Invalid data received from " + transmissions.id + " closing connection", e);
close(transmissions.id);
this.disconnected.add(transmissions.id);
throw e;
}
if (transmissions.receive.complete()) {