handle stream drain event.