stream-lua-nginx-module
stream-lua-nginx-module copied to clipboard
Embed the power of Lua into NGINX TCP/UDP servers
im making a reverce proxy with OpenResty, wrote stream directive as below, and then, i want to add a life time limit for each session like 1 hour max, 1min...
Some rudimentary tests
SO_PEERCRED is afaik available on Linux only, and so far only on unix sockets. This command will not be compiled on other platforms. syntax: local client = assert(ngx.req.socket(true)) uid, gid,...
// ping @agentzh, just in case 😸
+tests
[Original pull-request](https://github.com/openresty/stream-lua-nginx-module/pull/28) was closed as I branched this feature during some repo house keeping.
This addresses issue openresty/stream-lua-nginx-module#25 - cross modules shared dict. Tested (including adding/removing dicts and reload) but tests still need to be added. I'v covered different ways to do this. Most...
Implement bsd style receive('*b') for ngx.socket.tcp, and add a simple test case in file t/137-tcp-socket-receive-bsd-style.t 春哥好,今天看到openresty邮件列表里面有关于BSD风格的receive的讨论,我印象中关于这个主题在邮件列表里面已经多次出现了。因此一时兴起写了实现了这个接口,并附上一个简单的测试文件(对Test::Nginx的语法还不完全了解,所以只写一个最简单的test case)。目前还没有去在openresty的文档中添加使用方法,如果这个PR被接受,我再去补充文档,到时候再提交一个PR。英文学得不好,表达不够native,因此前面仅用一段简单的英语做描述,不知道是否符合规范?希望能得到春哥的指点,谢谢。
I hereby granted the copyright of the changes in this pull request to the authors of this lua-nginx-module project. See: https://github.com/openresty/lua-nginx-module/issues/1954