Update of /cvsroot/monetdb/clients/src/java/src/nl/cwi/monetdb/mcl/net
In directory
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10111/src/java/src/nl/cwi/monetdb/mcl/net
Modified Files:
MapiSocket.java
Log Message:
propagated changes of Tuesday Nov 20 2007 - Friday Nov 23 2007
from the Clients_1-20 branch to the development trunk
Index: MapiSocket.java
===================================================================
RCS file:
/cvsroot/monetdb/clients/src/java/src/nl/cwi/monetdb/mcl/net/MapiSocket.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- MapiSocket.java 17 Nov 2007 18:39:38 -0000 1.12
+++ MapiSocket.java 23 Nov 2007 11:45:13 -0000 1.13
@@ -236,7 +236,9 @@
int lineType;
do {
if ((tmp = reader.readLine()) == null)
- throw new IOException("Connection to server
lost!");
+ throw new IOException("Read from " +
+
con.getInetAddress().getHostAddress() + ":" +
+ con.getPort() + ": End of
stream reached");
if ((lineType = reader.getLineType()) ==
BufferedMCLReader.ERROR) {
err += "\n" + tmp.substring(1);
} else if (lineType == BufferedMCLReader.INFO) {
@@ -655,7 +657,9 @@
logRd("the following
incomplete block was received:");
logRx(new String(b, 0,
off, "UTF-8"));
}
- throw new
IOException("Incomplete block read from stream");
+ throw new IOException("Read
from " +
+
con.getInetAddress().getHostAddress() + ":" +
+ con.getPort() +
": Incomplete block read from stream");
}
return(false);
}
@@ -692,7 +696,9 @@
private void readBlock() throws IOException {
// read next two bytes (short)
if (!_read(blklen, 2)) throw
- new IOException("End of stream reached");
+ new IOException("Read from " +
+
con.getInetAddress().getHostAddress() + ":" +
+ con.getPort() + ": End of
stream reached");
// Get the short-value and store its value in blockLen.
blockLen = (short)(
@@ -716,7 +722,9 @@
"larger than BLOCKsize: " +
blockLen + " > " +
block.length);
if (!_read(block, blockLen))
- throw new IOException("End of stream reached");
+ new IOException("Read from " +
+
con.getInetAddress().getHostAddress() + ":" +
+ con.getPort() + ": End of
stream reached");
if (debug) {
logRx(new String(block, 0, blockLen, "UTF-8"));
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins