mirror of https://github.com/apache/kafka.git
KAFKA-2298; Client Selector can drop connections on InvalidReceiveException without notifying NetworkClient; reviewed by Jason Gustafson and Joel Koshy
This commit is contained in:
parent
f13dd8024d
commit
23d72bccbe
|
@ -279,6 +279,7 @@ public class Selector implements Selectable {
|
||||||
} catch (InvalidReceiveException e) {
|
} catch (InvalidReceiveException e) {
|
||||||
log.error("Invalid data received from " + transmissions.id + " closing connection", e);
|
log.error("Invalid data received from " + transmissions.id + " closing connection", e);
|
||||||
close(transmissions.id);
|
close(transmissions.id);
|
||||||
|
this.disconnected.add(transmissions.id);
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
if (transmissions.receive.complete()) {
|
if (transmissions.receive.complete()) {
|
||||||
|
|
Loading…
Reference in New Issue