当我客户端与服务器点对点传输时没有问题,但是我服务器用多线程接收就不能完整的接收文件,服务器有两个线程,一个是in.readUTF();接收字符串消息,另一个是in.read(byte[])接收文件转化的byte数组,两个线程都是时时监听,如果我只有一个in.read(byte[])接收文件线程就不会出现问题,现在两个线程报错
java.io.EOFException
at java.io.DataInputStream.readFully(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
求大神解释啊
java.io.EOFException
at java.io.DataInputStream.readFully(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
求大神解释啊