mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-29 17:06:18 +02:00
xxx
git-svn-id: svn://elaine/murooma/trunk@334 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
225fdc339a
commit
fee7e56600
2 changed files with 2 additions and 4 deletions
|
@ -134,7 +134,7 @@ shared_ptr<msg::SerializedMessage> ClientConnection::sendRequest(msg::BaseMessag
|
||||||
{
|
{
|
||||||
sumTimeout += timeout;
|
sumTimeout += timeout;
|
||||||
logO << "timeout while waiting for response to: " << reqId << ", timeout " << sumTimeout.count() << "\n";
|
logO << "timeout while waiting for response to: " << reqId << ", timeout " << sumTimeout.count() << "\n";
|
||||||
if (sumTimeout > chronos::sec(5))
|
if (sumTimeout > chronos::sec(10))
|
||||||
throw SnapException("sum timeout exceeded 10s");
|
throw SnapException("sum timeout exceeded 10s");
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
@ -129,9 +129,7 @@ int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
int count = read(fd, chunk->payload + len, toRead - len);
|
int count = read(fd, chunk->payload + len, toRead - len);
|
||||||
//continue;
|
//continue;
|
||||||
if (count == 0)
|
if (count <= 0)
|
||||||
throw ServerException("count = 0");
|
|
||||||
else if (count == -1)
|
|
||||||
usleep(100*1000);
|
usleep(100*1000);
|
||||||
else
|
else
|
||||||
len += count;
|
len += count;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue