feature: now we keep track of the total size of the buffered pending data and print out an error to the error log file when it goes out of sync.