Fixed bug where connection errors caused 100% cpu.

CQTexperiment
vspader 2009-03-06 20:39:33 -08:00
parent 7cbebef352
commit 4eee66d16a
3 changed files with 525 additions and 525 deletions

File diff suppressed because it is too large Load Diff

View File

@ -76,12 +76,12 @@
int totalRead = 0;
while (totalRead < amount) {
int status = _get->run();
int result = _get->run();
int amountRead = _get->get_bytes((char *)((uint8_t *)buffer) + totalRead, amount - totalRead);
totalRead += amountRead;
if (result != 0 && 0 == amountRead) break;
if (status && 0 == amountRead) break;
totalRead += amountRead;
}
_byteCount += totalRead;

View File

@ -18,14 +18,14 @@
isa = PBXContainerItemProxy;
containerPortal = 17F6C6400F5F9E3F000D9DA9 /* JNetLib.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 8DC2EF5B0486A6940098B216 /* JNetLib.framework */;
remoteGlobalIDString = 8DC2EF5B0486A6940098B216;
remoteInfo = JNetLib;
};
17F6C6800F5F9FFE000D9DA9 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 17F6C6400F5F9E3F000D9DA9 /* JNetLib.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = 8DC2EF4F0486A6940098B216 /* JNetLib */;
remoteGlobalIDString = 8DC2EF4F0486A6940098B216;
remoteInfo = JNetLib;
};
/* End PBXContainerItemProxy section */