One of the servers I'm testing my client on has a timeout of one minute. As the timeout varies with every server, sending a command every x seconds probably will get the job done, but isn't good programming practice. As one of the feathures of my program allows you to transmit files after a certain time delay (do it while you're working on other stuff instead of waiting for each transfer to complete), sending a doNothing command every thirty seconds for several hours will clog up the server.
Is there a way of actually reenabling commands without reconnecting?