Skip to content

Commit

Permalink
"UNKNOWN_COMMAND" is a known command. Like "OK", it is a response out
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Bruce Markey committed Apr 12, 2005
1 parent b3600bd commit b1cbe83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmyth/util.cpp
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down
6 changes: 5 additions & 1 deletion mythtv/programs/mythbackend/mainserver.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit b1cbe83

Please sign in to comment.