mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-28 08:26:16 +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;
|
||||
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");
|
||||
}
|
||||
{
|
||||
|
|
|
@ -129,9 +129,7 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
int count = read(fd, chunk->payload + len, toRead - len);
|
||||
//continue;
|
||||
if (count == 0)
|
||||
throw ServerException("count = 0");
|
||||
else if (count == -1)
|
||||
if (count <= 0)
|
||||
usleep(100*1000);
|
||||
else
|
||||
len += count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue