LJD wrote: > > The following code is designed (at least thats my intent) to run forever. > The program should sit in a loop until it connects with the server. It > should just loop and loop and loop. where do you close the socket, other than in the exception handler? you may be using up all the file descriptors allowed for a process.