diff src/luan/lib/rpc/RpcCon.java @ 1120:e8fc6712b468

luan Rpc uses luan.lib.rpc
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 07 Aug 2017 23:50:52 -0600
parents 87c674f3f6b7
children
line wrap: on
line diff
--- a/src/luan/lib/rpc/RpcCon.java	Mon Aug 07 12:35:45 2017 -0600
+++ b/src/luan/lib/rpc/RpcCon.java	Mon Aug 07 23:50:52 2017 -0600
@@ -18,6 +18,7 @@
 	final OutputStream out;
 	InputStream inBinary = null;
 	long lenBinary = -1;
+	boolean readSome = false;
 
 	RpcCon(Socket socket)
 		throws RpcError
@@ -90,6 +91,7 @@
 				inBinary = null;
 				lenBinary = -1;
 			}
+			readSome = false;
 			byte[] a = new byte[4];
 			readAll(a);
 			int len = 0;
@@ -122,6 +124,7 @@
 			n = in.read( a, total, a.length-total );
 			if( n == -1 )
 				throw new EOFException();
+			readSome = true;
 			total += n;
 		}
 	}