Branch: Tag:

2014-09-15

2014-09-15 13:44:56 by Per Hedbor <ph@opera.com>

Do not trigger the write callback again when nothing is written

This saves the user from checking sizeof(buffer) before doing buffer->output_to(...)

946:    io_consume( io, res );    written += res;    nbytes-=res; -  } -  +     io_set_events( io, fd, PIKE_BIT_FD_WRITE_OOB, PIKE_FD_WRITE);    } -  +  }    else    {    /* some other object. Just call write */