|
|
@ -167,7 +167,9 @@ int64 iob_send(int64 s,io_batch* b) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
headers=i;
|
|
|
|
headers=i;
|
|
|
|
#ifdef HAVE_BSDSENDFILE
|
|
|
|
#ifdef HAVE_BSDSENDFILE
|
|
|
|
if (e[i].type==FROMFILE) {
|
|
|
|
if (e+i<last && e[i].type==FROMFILE) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUGONLINUX
|
|
|
|
off_t sbytes;
|
|
|
|
off_t sbytes;
|
|
|
|
struct sf_hdtr hdr;
|
|
|
|
struct sf_hdtr hdr;
|
|
|
|
int r;
|
|
|
|
int r;
|
|
|
@ -189,6 +191,9 @@ int64 iob_send(int64 s,io_batch* b) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
sent=-3;
|
|
|
|
sent=-3;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // DEBUGONLINUX
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (headers==1) /* cosmetics for strace */
|
|
|
|
if (headers==1) /* cosmetics for strace */
|
|
|
|
sent=write(s,v[0].iov_base,v[0].iov_len);
|
|
|
|
sent=write(s,v[0].iov_base,v[0].iov_len);
|
|
|
|