Better yet:
fsize = r->finfo.size;
e = apr_bucket_file_create(fd, 0, AP_MAX_SENDFILE, r->pool);
APR_BRIGADE_INSERT_TAIL(bb, e);
#if APR_HAS_LARGE_FILES
while (fsize > AP_MAX_SENDFILE) {
fsize -= AP_MAX_SENDFILE;
apr_bucket_copy(e, &e);
e->start += AP_MAX_SENDFILE;
APR_BRIGADE_INSERT_TAIL(bb, e);
}
#endif
e->length = fsize; /* fixup last bucket's length */
--Cliff
--------------------------------------------------------------
Cliff Woolley
[EMAIL PROTECTED]
Charlottesville, VA
- Re: cvs commit: httpd-2.0/server core.c Cliff Woolley
- Re: cvs commit: httpd-2.0/server core.c Cliff Woolley
- Re: cvs commit: httpd-2.0/server core.c Greg Stein
- Re: cvs commit: httpd-2.0/server core.c Cliff Woolley
- Re: cvs commit: httpd-2.0/server core.c Cliff Woolley
- Cliff Woolley
