Name
ap_send_mmap — send data from an in-memory buffer
Synopsis
size_t ap_send_mmap(void *mm, request_rec *r, size_t offset, size_t length)
Copies length
bytes from
mm+offset
to the client. The data is copied
MMAP_SEGMENT_SIZE
bytes at a time, with the
timeout reset in between each one. Although this can be used for any
memory buffer, it is really intended for use with memory mapped files
(which may give performance advantages over other means of sending
files on some platforms).
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.