we should do a writev() of all the pending