From b1cbe8392fbc3f871ed5167f3af52f4417cea52c Mon Sep 17 00:00:00 2001 From: Bruce Markey Date: Tue, 12 Apr 2005 15:19:47 +0000 Subject: [PATCH] "UNKNOWN_COMMAND" is a known command. Like "OK", it is a response out of sequence rather than a new request. Therefore, a response should not be sent otherwise both sides will loop. git-svn-id: http://svn.mythtv.org/svn/trunk@6025 7dbf422c-18fa-0310-86e9-fd20926502f2 --- mythtv/libs/libmyth/util.cpp | 4 ++-- mythtv/programs/mythbackend/mainserver.cpp | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mythtv/libs/libmyth/util.cpp b/mythtv/libs/libmyth/util.cpp index 7a92abff15e..a4f3e88e299 100644 --- a/mythtv/libs/libmyth/util.cpp +++ b/mythtv/libs/libmyth/util.cpp @@ -222,7 +222,7 @@ bool ReadStringList(QSocketDevice *socket, QStringList &list, bool quickTimeout) socket->readBlock(dump.data(), pending); VERBOSE(VB_IMPORTANT, QString("Protocol error: '%1' is not a valid " "size prefix. %2 bytes pending.") - .arg(sizestr, pending)); + .arg(sizestr).arg(pending)); return false; } @@ -464,7 +464,7 @@ bool ReadStringList(QSocket *socket, QStringList &list) socket->readBlock(dump.data(), pending); VERBOSE(VB_IMPORTANT, QString("Protocol error: '%1' is not a valid " "size prefix. %2 bytes pending.") - .arg(sizestr, pending)); + .arg(sizestr).arg(pending)); return false; } diff --git a/mythtv/programs/mythbackend/mainserver.cpp b/mythtv/programs/mythbackend/mainserver.cpp index 1f56ad754d8..09787f34319 100644 --- a/mythtv/programs/mythbackend/mainserver.cpp +++ b/mythtv/programs/mythbackend/mainserver.cpp @@ -433,7 +433,11 @@ void MainServer::ProcessRequestWork(RefSocket *sock) } else if (command == "OK") { - VERBOSE(VB_ALL, "Got 'OK' out of sync.."); + VERBOSE(VB_ALL, "Got 'OK' out of sequence."); + } + else if (command == "UNKNOWN_COMMAND") + { + VERBOSE(VB_ALL, "Got 'UNKNOWN_COMMAND' out of sequence."); } else {