Fix a recv bug in TcpConnection.