waitForBytesWritten time was set to 2500 msec.