Posted by Chung Leong on 10/26/27 11:33
The behavior is readfile() is platform dependent. On operation systems
that supports memory-mapped files (e.g. Win32), the entire file is
mapped into the process's memory space and sent in one chunk (hence the
complaints that the function reads in the whole file). On operation
systems that do not support memory-mapped files, the function dispatch
the data in 8K chunks.
Navigation:
[Reply to this message]
|