LOGGER.info("Now sending sequences of length " + blocks + " blocks.");
LOGGER.info("Remaining, DataSegmentLength: " + bytes2Process + ", " + expectedDataTransferLength);
}
expectedDataTransferLength = (int) Math.min(bytes2Process, blocks * blockSize);
connection.nextState(new WriteRequestState(connection, src, bufferPosition, TaskAttributes.SIMPLE, expectedDataTransferLength, startAddress, blocks));
startAddress += blocks;
totalBlocks -= blocks;
bytes2Process -= blocks * blockSize;
bufferPosition += expectedDataTransferLength;
}