Merge changes from team/russell/http_filetxfer
authorRussell Bryant <russell@russellbryant.com>
Fri, 29 Jun 2007 20:35:09 +0000 (20:35 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 29 Jun 2007 20:35:09 +0000 (20:35 +0000)
commit408dbc430482bc94819d68b768608573bf351112
tree9e01621c41fcbbbd3c12d161b63a79ad22099161
parent3caa225108fd22c02b9e96f291e3045a5eada09f
Merge changes from team/russell/http_filetxfer

Handle transferring large files from the built-in http server.  Previously, the
code attempted to malloc a block as large as the file itself.  Now it uses the
sendfile() system call so that the file isn't copied into userspace at all if
it is available.  Otherwise, it just uses a read/write of small chunks at a time.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
configure
configure.ac
include/asterisk/autoconfig.h.in
include/asterisk/http.h
main/http.c
main/manager.c