You're using blocking sockets, so read will not terminate until the connection is closed from the other end, or until 128 octets are read. I suppose the other side is sending data less than 128 octets ...
This tutorial is an introduction to socket programming in Java, starting with a simple client-server example demonstrating the basic features of Java I/O. You’ll be introduced to both the original ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results