mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-18 06:06:52 -06:00
.Web: sproc.cpp time interval fix
git-svn-id: svn://ultimatepp.org/upp/trunk@2990 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
30ce9c6f0d
commit
a4cf982262
1 changed files with 3 additions and 2 deletions
|
|
@ -571,8 +571,9 @@ void RemoteSlaveProcess::Recv(int part, int timeout)
|
|||
return;
|
||||
}
|
||||
// LOG("RemoteSlaveProcess::Recv(" << part << ")");
|
||||
unsigned end = (IsNull(timeout) ? (unsigned)-1 : GetTickCount() + timeout);
|
||||
while(GetTickCount() <= (int)end && (socket.Peek() || current_part <= part))
|
||||
|
||||
int starttick = GetTickCount();
|
||||
while( (IsNull(timeout) || int(GetTickCount())-starttick <= timeout) && (socket.Peek() || current_part <= part))
|
||||
{
|
||||
String data = socket.Read(0);
|
||||
SVRLOG("-> [" << current_part << "] = " << data.GetLength() << " bytes: <" << data << ">");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue