470471472473474475476477478479480
localWrittenBytes = buf.transferTo(ch); if (localWrittenBytes != 0) { writtenBytes += localWrittenBytes; break; } if (buf.finished()) { break; } } if (buf.finished()) {
475476477478479480481482483484485
if (buf.finished()) { break; } } if (buf.finished()) { // Successful write - proceed to the next message. buf.release(); channel.currentWriteEvent = null; channel.currentWriteBuffer = null; evt = null;
534535536537538539540541542543544
localWrittenBytes = buf.transferTo(ch); if (localWrittenBytes != 0) { writtenBytes += localWrittenBytes; break; } if (buf.finished()) { break; } } } else { for (int i = writeSpinCount; i > 0; i --) {
545546547548549550551552553554555
localWrittenBytes = buf.transferTo(ch, raddr); if (localWrittenBytes != 0) { writtenBytes += localWrittenBytes; break; } if (buf.finished()) { break; } } }
551552553554555556557558559560561
break; } } } if (localWrittenBytes > 0 || buf.finished()) { // Successful write - proceed to the next message. buf.release(); ChannelFuture future = evt.getFuture(); channel.currentWriteEvent = null; channel.currentWriteBuffer = null;
199200201202203204205206207208209
204205206207208209210211212213214
if (buf.finished()) { break; } } if (buf.finished()) { // Successful write - proceed to the next message. buf.release(); channel.currentWriteEvent = null; channel.currentWriteBuffer = null; // Mark the event object for garbage collection.
202203204205206207208209210211212
207208209210211212213214215216217
529530531532533534535536537538539