nginx-tcp-lua-module
nginx-tcp-lua-module copied to clipboard
A TCP server with lua supporting based on nginx
 /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp_core_module.c:33: error: ‘NGX_CONF_MULTI’ undeclared here (not in a function) /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp.c: In function ‘ngx_tcp_add_addrs’: /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp.c:425: warning: passing argument 2 of ‘ngx_sock_ntop’ makes integer from pointer without a cast src/core/ngx_inet.h:113: note:...
通过redis-benmark压测99%是1-2ms 不过发现偶尔会有抖动, 发现接收客户端buffer的时候,偶尔超过10ms以上!
Change in Readme.md file ngx-tcp-lua-module to nginx-tcp-lua-module. Error confuses while compilation if copy-paste "rules" example.
connect function suport 4 args ( add the custom pool) add req socket send function
ngx_tcp_lua_socket_tcp_receive ==29006== 355,213,312 bytes in 86,722 blocks are possibly lost in loss record 145 of ==29006== at 0x4A0610C: malloc (vg_replace_malloc.c:195) ==29006== by 0x42C745: ngx_alloc (ngx_alloc.c:22) ==29006== by 0x41636B: ngx_palloc_large (ngx_palloc.c:223)...
This is interesting... I connect via telnet and my client transmits telnet commands to the server...the connection works normally. I connect via telnet and my client waits for data from...
``` Hi,I am installing this nginx-tcp-lua-module ,but get errors as belows: ``` In file included from ../nginx-tcp-lua-module//src/ngx_tcp_session.c:6: ../nginx-tcp-lua-module//src/ngx_tcp_lua_common.h:70: error: redefinition of typedef ‘ngx_tcp_cleanup_pt’ ../nginx-tcp-lua-module//src/ngx_tcp_session.h:48: note: previous declaration of ‘ngx_tcp_cleanup_pt’ was...