Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新代码 #2

Merged
merged 8 commits into from
Oct 12, 2020
Prev Previous commit
Next Next commit
[ISSUE alibaba#3850] ignore socket exception when client destroy alre…
…ady (alibaba#3906)

* if client destroy already, ignore socket exception.

* remove the exception's judgement

* remove unuseful import
  • Loading branch information
horizonzy committed Sep 30, 2020
commit f6c6a9f3b2e021774c498eab79d11c7e8b71fed5
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ public void run() {
udpSocket.send(new DatagramPacket(ack.getBytes(UTF_8), ack.getBytes(UTF_8).length,
packet.getSocketAddress()));
} catch (Exception e) {
if (closed) {
return;
}
NAMING_LOGGER.error("[NA] error while receiving push data", e);
}
}
Expand Down