just possible it may help, do a buffer flush. I assume your delay comes when the buffer is flushed out from the I/O stream. Question are you getting all your data you need its just a delay??