Don't throw on read error in TCPConnection.waitForData.
This commit is contained in:
parent
4c9b6c0fb8
commit
d2629ef053
|
@ -518,8 +518,8 @@ mixin(tracer);
|
||||||
m_context.readBuffer.putN(waiter.results[2]);
|
m_context.readBuffer.putN(waiter.results[2]);
|
||||||
switch (waiter.results[1]) {
|
switch (waiter.results[1]) {
|
||||||
default:
|
default:
|
||||||
logInfo("read status %s", waiter.results[1]);
|
logDebug("Error status when waiting for data: %s", waiter.results[1]);
|
||||||
throw new Exception("Error reading data from socket.");
|
break;
|
||||||
case IOStatus.ok: break;
|
case IOStatus.ok: break;
|
||||||
case IOStatus.wouldBlock: assert(mode == IOMode.immediate); break;
|
case IOStatus.wouldBlock: assert(mode == IOMode.immediate); break;
|
||||||
case IOStatus.disconnected: break;
|
case IOStatus.disconnected: break;
|
||||||
|
|
Loading…
Reference in a new issue