call drain in write_eof, wsgi server always drain writer