I have programmed an XML Socket Server to communicate with Flash.
It doesn't print out the messages it has received from the flash until the server has been shut down. Any ideas?

The part with the problem:
Code:
 
            //Create streams
            BufferedReader data_in = new BufferedReader(
                    new InputStreamReader(incoming.getInputStream()));
            PrintWriter
...