• Post Reply Bookmark Topic Watch Topic
  • New Topic

StreamCorruptedException from socket reading

 
George Lin
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,


When reading from a socket, I got error,

java.io.StreamCorruptedException unexpected end of block data

I only get it very randomly and very hard to reproduce. Does anyone encounter this before, any ideas?

Should it be caused by server side (output stream is not flushed)?

BTW: I program both client and server.


thanks in advance,
George
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!