3 使用Python加速文件传输和文件复制 Giampaolo Rodola[Image](/uploads/documents/6/9/c/7/69c720fb72a670af19d442ea203d8521/p27_1.jpg) ## Zero-copy syscalls 支持零拷贝的系统调用 sendfile() • copy file range() • mmap() • splice() / vmsplice() / tee() • KTLS (kernel-space TLS)  ## sendfile() (zero-copy) import socket, os sock = socket.create_server("", 8080) while True: conn, addr = sent = os.sendfile(conn.fileno(), file.fileno(), offset, 65536) if sent == 0: break # EOF offset += sent conn.close() ||read() / write()|sendfile()| |---|---|---|0 码力 | 78 页 | 654.51 KB | 2 年前3
Flask Documentation (1.1.x)bandwidth. Non-permanent sessions are not affected. Default: True ## USE X SENDFILE When serving files, set the x-Sendfile header instead of serving the data with Flask. Some web servers, such as Apache False, 'TRAP_BAD_REQUEST_ERRORS': None, 'TRAP_HTTP_EXCEPTIONS': False, 'USE_X_SENDFILE': False} Default configuration parameters. ## dispatch_request() Does the request dispatching register a function, use url value preprocessor(). ## ▶ Changelog ## use_x_sendfile Enable this if you want to use the X-Sendfile feature. Keep in mind that the server has to support this. This only affects0 码力 | 428 页 | 895.98 KB | 2 年前3
httpd 2.4.28 中文文档improvements to their TCP stacks and thread libraries in recent years. - If your OS supports a sendfile(2) system call, make sure you install the release and/or patches needed to enable it. (With Linux For early releases of Solaris 8, you may need to apply a patch.) On systems where it is available, sendfile enables Apache 2 to deliver static content faster and with lower CPU utilization. ## Run-Time Configuration basis.) ## Sendfile In situations where Apache 2.x can ignore the contents of the file to be delivered -- for example, when serving static file content -- it normally uses the kernel sendfile support for0 码力 | 2659 页 | 3.10 MB | 1 年前3
httpd 2.4.33 中文文档improvements to their TCP stacks and thread libraries in recent years. - If your OS supports a sendfile(2) system call, make sure you install the release and/or patches needed to enable it. (With Linux For early releases of Solaris 8, you may need to apply a patch.) On systems where it is available, sendfile enables Apache 2 to deliver static content faster and with lower CPU utilization. ## Run-Time Configuration basis.) ## Sendfile In situations where Apache 2.x can ignore the contents of the file to be delivered -- for example, when serving static file content -- it normally uses the kernel sendfile support for0 码力 | 2692 页 | 3.12 MB | 1 年前3
httpd 2.4.12 中文文档improvements to their TCP stacks and thread libraries in recent years. - If your OS supports a sendfile(2) system call, make sure you install the release and/or patches needed to enable it. (With Linux For early releases of Solaris 8, you may need to apply a patch.) On systems where it is available, sendfile enables Apache 2 to deliver static content faster and with lower CPU utilization. ## Run-Time Configuration basis.) ## Sendfile In situations where Apache 2.x can ignore the contents of the file to be delivered -- for example, when serving static file content -- it normally uses the kernel sendfile support the0 码力 | 2426 页 | 1.86 MB | 1 年前3
httpd 2.4.17 中文文档improvements to their TCP stacks and thread libraries in recent years. - If your OS supports a sendfile(2) system call, make sure you install the release and/or patches needed to enable it. (With Linux For early releases of Solaris 8, you may need to apply a patch.) On systems where it is available, sendfile enables Apache 2 to deliver static content faster and with lower CPU utilization. ## Run-Time Configuration basis.) ## Sendfile In situations where Apache 2.x can ignore the contents of the file to be delivered -- for example, when serving static file content -- it normally uses the kernel sendfile support for0 码力 | 2455 页 | 1.88 MB | 1 年前3
httpd 2.4.16 中文文档improvements to their TCP stacks and thread libraries in recent years. - If your OS supports a sendfile(2) system call, make sure you install the release and/or patches needed to enable it. (With Linux For early releases of Solaris 8, you may need to apply a patch.) On systems where it is available, sendfile enables Apache 2 to deliver static content faster and with lower CPU utilization. ## Run-Time Configuration basis.) ## Sendfile In situations where Apache 2.x can ignore the contents of the file to be delivered -- for example, when serving static file content -- it normally uses the kernel sendfile support for0 码力 | 2438 页 | 1.87 MB | 1 年前3
httpd 2.4.10 中文文档improvements to their TCP stacks and thread libraries in recent years. - If your OS supports a sendfile(2) system call, make sure you install the release and/or patches needed to enable it. (With Linux For early releases of Solaris 8, you may need to apply a patch.) On systems where it is available, sendfile enables Apache 2 to deliver static content faster and with lower CPU utilization. ## Run-Time Configuration basis.) ## Sendfile In situations where Apache 2.x can ignore the contents of the file to be delivered -- for example, when serving static file content -- it normally uses the kernel sendfile support the0 码力 | 2420 页 | 1.85 MB | 1 年前3
httpd 2.4.8.dev 中文文档improvements to their TCP stacks and thread libraries in recent years. - If your OS supports a sendfile(2) system call, make sure you install the release and/or patches needed to enable it. (With Linux For early releases of Solaris 8, you may need to apply a patch.) On systems where it is available, sendfile enables Apache 2 to deliver static content faster and with lower CPU utilization. ## Run-Time Configuration basis.) ## Sendfile In situations where Apache 2.x can ignore the contents of the file to be delivered -- for example, when serving static file content -- it normally uses the kernel sendfile support the0 码力 | 2404 页 | 1.84 MB | 1 年前3
httpd 2.2.27 中文文档improvements to their TCP stacks and thread libraries in recent years. - If your OS supports a sendfile(2) system call, make sure you install the release and/or patches needed to enable it. (With Linux For early releases of Solaris 8, you may need to apply a patch.) On systems where it is available, sendfile enables Apache 2 to deliver static content faster and with lower CPU utilization. ## ▲ ## Run-Time basis.) ## Sendfile In situations where Apache 2.x can ignore the contents of the file to be delivered -- for example, when serving static file content -- it normally uses the kernel sendfile support the0 码力 | 1849 页 | 1.47 MB | 1 年前3
共 121 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13
相关搜索词
零拷贝psutilsendfile上下文切换性能优化FlaskApplication ObjectBlueprint ObjectsJinjaWerkzeugApache HTTP Server2.4.xmod_proxySSL/TLS升级注意事项mod_proxy_balancermod_sedmod_auth_formmod_remoteipmod_rewriteApache HTTP 服务器版本 2.4新特性模块配置mod_auth_basicmod_authn_filemod_authnz_ldapmod_authz_hostmod_info多处理模块(MPM)API变化新模块发行说明升级指南httpdhtpasswdPCREapachectlabapxsconfigure配置文件模块重命名性能调谐













