Permalink
Browse files

fix jmdns oom error (#166)

in case of closed jmdns,process call create function to get more _messageInputStream because of the old one exist

Signed-off-by: Zippo <zippozeng@qq.com>
  • Loading branch information...
ZippoZeng authored and kaikreuzer committed Nov 1, 2018
1 parent 6e69389 commit fef7c8dde8289ac0011c1519870de6afa8e4e701
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/javax/jmdns/impl/DNSIncoming.java
@@ -268,6 +268,12 @@ public DNSIncoming(DatagramPacket packet) throws IOException {
IOException ioe = new IOException("DNSIncoming corrupted message");
ioe.initCause(e);
throw ioe;
} finally {
try {
_messageInputStream.close();
} catch (Exception e) {
logger.warn("MessageInputStream close error");
}
}
}

0 comments on commit fef7c8d

Please sign in to comment.