mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed more info
This commit is contained in:
@@ -88,8 +88,9 @@ public class BioSocketChannel implements SocketChannel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (remain > 0 && accTimeout >= timeout) {
|
if (remain > 0 && accTimeout >= timeout) {
|
||||||
throw new SocketTimeoutException("Timeout occurred, failed to read " + readSize + " bytes in " + timeout
|
throw new SocketTimeoutException("Timeout occurred, failed to read total " + readSize + " bytes in "
|
||||||
+ " milliseconds.");
|
+ timeout + " milliseconds, actual read only " + (readSize - remain)
|
||||||
|
+ " bytes");
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
@@ -120,8 +121,8 @@ public class BioSocketChannel implements SocketChannel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (n < len && accTimeout >= timeout) {
|
if (n < len && accTimeout >= timeout) {
|
||||||
throw new SocketTimeoutException("Timeout occurred, failed to read " + len + " bytes in " + timeout
|
throw new SocketTimeoutException("Timeout occurred, failed to read total " + len + " bytes in " + timeout
|
||||||
+ " milliseconds.");
|
+ " milliseconds, actual read only " + n + " bytes");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user