tcp persisting, somewhat buggy repeating messages to server