get th channel to flush the writer
when the former is asked to terminate by the reader
Backed out changeset 0ca8cbef9720
accidentally committed on 'stable' instead of bug25360 branch