Hi,

I have never dealt with java servers, but at first glance there is no way to determine end of data (as opposed to an error) and leave the loop.

Musicman