Bugfix: our "connected" flag was set arbitrarily late; it was easy to overrun connections, at which point the client would think it wasn't connected.