throw IOException with msg "connection broken" when in.read() < 0

This commit is contained in:
YuQing
2025-11-27 17:13:23 +08:00
parent 7b7a7d76f6
commit cc95bc0244
6 changed files with 22 additions and 12 deletions
@@ -85,13 +85,13 @@ public class TrackerClient {
connection = trackerServer.getConnection();
} catch (IOException e) {
if (failOver) {
System.err.println("trackerServer get connection error, emsg:" + e.getMessage());
System.err.println("trackerServer get connection error, " + e.getMessage());
} else {
throw e;
}
} catch (MyException e) {
if (failOver) {
System.err.println("trackerServer get connection error, emsg:" + e.getMessage());
System.err.println("trackerServer get connection error, " + e.getMessage());
} else {
throw e;
}