I have a client server application with a java server. It works very well, except that after a long period of time, the nest suddenly hangs. This socket is one of many, the rest seems to be all right, but as soon as it gets into the socket, the server just does not go past the sending line. These are the relevant code snippets:
Socket socket;
out = new PrintWriter(socket.getOutputStream(), true);
out.println(msg + "\0");
No exceptions are thrown, the line application simply does not pass the line:
out.println(msg + "\0");
I know that String is good, calling 4 or 5 other sockets before this one can send it just fine. Also note that, as far as I know, this socket can send hundreds of messages just fine before it suddenly hangs itself. Does anyone know what error I should look for?
Toby
source
share