From d3906c18395950319f6f5b36c06bd1f5269969e9 Mon Sep 17 00:00:00 2001 From: Quan Zhao Date: Wed, 4 Mar 2020 15:57:10 +0800 Subject: [PATCH] [doc] Update --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 8a071f77..29d73520 100644 --- a/README.md +++ b/README.md @@ -265,6 +265,8 @@ Directives * [body_filter_by_php_block](#body_filter_by_php_block) * [php_keepalive](#php_keepalive) * [php_set](#php_set) +* [php_socket_keepalive](#php_socket_keepalive) +* [php_socket_buffer_size](#php_socket_buffer_size) php_ini_path ------------ @@ -420,6 +422,22 @@ php_set Installs a php handler for the specified variable. +php_socket_keepalive +-------------------- +**syntax:** `php_socket_keepalive`_``_ + +**default:** `0` + +**context:** `http, server` + +php_socket_buffer_size +---------------------- +**syntax:** `php_socket_buffer_size`_``_ + +**default:** `4k` + +**context:** `http, server, location, location if` + Nginx API for php ----------------- * [ngx_exit](#ngx_exit) @@ -758,6 +776,7 @@ Nginx non-blocking API for php * [yield ngx_socket_close](#ngx_socket_close) * [yield ngx_socket_send](#ngx_socket_send) * [yield ngx_socket_recv](#ngx_socket_recv) +* [yield ngx_socket_recvpage](#ngx_socket_recvpage) * [ngx_socket_recvsync](#ngx_socket_recvsync) * [ngx_socket_clear](#ngx_socket_clear) @@ -863,6 +882,17 @@ used to gather data from connected sockets. buf is passed by reference, so it must be specified as a variable in the argument list. Data read from socket by ngx_socket_recv() will be returned in buf. +ngx_socket_recvpage +------------------- +**syntax:** `( yield ngx_socket_recvpage(resource $socket, string &$buf, int &$rc) ) : int` + +**parameters:** +- `socket: resource` +- `buf: string` +- `rc: int` + +**context:** `rewrite_by_php*, access_by_php*, content_by_php*` + ngx_socket_recvsync ------------------- **syntax:** `ngx_socket_recvsync(resource $socket, string &$buf, int $len) : int`