readLine() loop not exiting until remote client closes connection
问题 I'm having a problem with a Java SocketServer, i'm building a very basic Java handled Web Server. So i'm creating a socket server, this is the code from the run method as i have made the server threaded. The problem i'm having is that the server code seems to freeze as while((line = reader.readLine()) != null) until the remote client closes the connection. I'm using the chrome plugin ARC (Advanced REST Client) to do the testing with. public void start() throws ServerException{ this.running =