I'm already chunking at 1,000 bytes. I'll try reducing it to see what changes. The weird thing is that it's sporadic though. I'd have thought that it would happen every time.
Can the STREAMOUT return before the queue has been fully processed? I have a FILEREAD stage and on success I jump to a STREAMOUT stage. On success from that I jump to a stage to check the byte count and then if necessary jump back to the FILEREAD stage.I can put a timer in to delay the loop frequency if necesssary.