bsd sendfile

master
leitner 21 years ago
parent 7e7f07f382
commit a36316a0a5

@ -51,7 +51,7 @@ int64 iob_send(int64 s,io_batch* b) {
}
hdr.headers=v; hdr.hdr_cnt=headers;
hdr.trailers=v+headers; hdr.trl_cnt=trailers;
r=sendfile(e[headers].fd,s,e[headers].off,nbytes,&hdr,&sbytes,0);
r=sendfile(e[headers].fd,s,e[headers].offset,e[headers].bytes,&hdr,&sbytes,0);
if (r==0)
sent=b->bytesleft;
else if (r==-1 && errno==EAGAIN)

Loading…
Cancel
Save