tcp{#connection_pool_size 1k; #main/srv/take one/default 0.5ksession_pool_size1k;#main/srv/take one/default 1kclient_max_body_size1k;#main/srv/take one/default 1k;read_timeout60s;#main/srv/take one/default 60s#send_timeout 60s; #main/srv/take one/default 60s#keepalive_timeout 60; ...
tcp{#connection_pool_size 1k; #main/srv/take one/default 0.5ksession_pool_size1k;#main/srv/take one/default 1kclient_max_body_size1k;#main/srv/take one/default 1k;read_timeout60s;#main/srv/take one/default 60s#send_timeout 60s; #main/srv/take one/default 60s#keepalive_timeout 60; ...
Embed the power of Lua into NGINX TCP/UDP servers. Contribute to openresty/stream-lua-nginx-module development by creating an account on GitHub.
char *unixsocket; /* UNIX socket path */ mode_t unixsocketperm; /* UNIX socket permission */ int ipfd[REDIS_BINDADDR_MAX]; /* TCP socket file descriptors */ int ipfd_count; /* Used slots in ipfd[] */ int sofd; /* Unix socket file descriptor */ int cfd[REDIS_BINDADDR_MAX];/...
process_by_lua_file lua_socket_connect_timeout lua_socket_send_lowat lua_socket_pool_size lua_check_client_abort lua_shared_dict lua_shared_dict lua_regex_match_limit demo_echo Code Exapmle for ngx_tcp_lua_module Nginx API for Lua Introduction ngx.say ngx.print ngx.receive ngx.wait_next...
*/ if (server.lua_timedout && c->flags & CLIENT_MASTER) break; /* CLIENT_CLOSE_AFTER_REPLY closes the connection once the reply is * written to the client. Make sure to not let the reply grow after * this flag has been set (i.e. don't process more commands). * * The same ...
Nginx stream(UDP)模块分析 ngx_stream_handler.c ngx_stream_init_connection函数 代码解读: 在ngx_stream_optimize_servers里设置有连接发生时的回调函数ngx_stream_init_connection.创建一个处理tcp的会话对象.创建ctx数组,用...
sock = socket.udp() 289 changes: 289 additions & 0 deletions 289 src/tcp/doc/conf_test/load_balance/http_lb.lua Original file line numberDiff line numberDiff line change @@ -0,0 +1,289 @@ --http module, load_balance version --need nlog.lua if use_log = true local load_balance...
openresty/meta-lua-nginx-modulePublic Notifications Fork19 Star63 New issue Merged doujiang24merged 1 commit intoopenresty:masterfromtangsty:masteron Oct 9, 2020 spacewanderadded this toWaiting Review from agentzhindeveloper progresson Aug 4, 2020 ...
nginx tcp core module, for tcp stream server tcp{#connection_pool_size 1k; #main/srv/take one/default 0.5ksession_pool_size1k;#main/srv/take one/default 1kclient_max_body_size1k;#main/srv/take one/default 1k;read_timeout60s;#main/srv/take one/default 60s#send_timeout 60s; #main/srv...