while ( (line = in.readLine()) != null ) {
System.out.println(line);
}

サーバから送られてきた文字列をこれで出力すると
出力が完了した後、固まって動かなくなります(´・ω・`)
何故でしょう?