programmer/gdbserver: use TCP_NODELAY, handle broken connections