src/server/util/io.c

changeset 657
f1469e3144a7
parent 583
d41c48522eea
equal deleted inserted replaced
656:59dd1fb27639 657:f1469e3144a7
385 st->st.io_errno = 0; 385 st->st.io_errno = 0;
386 if(st->write_eof) return 0; 386 if(st->write_eof) return 0;
387 IOStream *fd = st->fd; 387 IOStream *fd = st->fd;
388 if(!st->chunked_enc) { 388 if(!st->chunked_enc) {
389 ssize_t w = fd->write(fd, buf, nbytes); 389 ssize_t w = fd->write(fd, buf, nbytes);
390 st->written += w > 0 ? w : 0; 390 //st->written += w > 0 ? w : 0;
391 st->written += w;
391 return w; 392 return w;
392 } else { 393 } else {
393 struct iovec io[8]; 394 struct iovec io[8];
394 writeop_finish_func io_finished[8]; 395 writeop_finish_func io_finished[8];
395 void *io_finished_udata[8]; 396 void *io_finished_udata[8];

mercurial