zhangjingpu / nginx-tcp-lua-module Goto Github PK
View Code? Open in Web Editor NEWThis project forked from laozi2/nginx-stream-lua-module
nginx tcp lua
License: BSD 2-Clause "Simplified" License
This project forked from laozi2/nginx-stream-lua-module
nginx tcp lua
License: BSD 2-Clause "Simplified" License
基于nginx1.4.1开发。 1. 日志: 新增 error_log, access_log 的网络日志功能。 2. tcp 模块。 tcp框架下自定义协议开发,模块示例 demo 3. 基于tcp框架的tcp_lua模块。参照 https://github.com/bigplum/nginx-tcp-lua-module 在基本代码框架上做调整: 3.1 将整个ngx_tcp_lua作为一个独立模块,而非整个tcp模块围绕tcp_lua模块开发。 3.2 鉴于一个连接上仅有一个客户端,将封装的socket上下游通用类分离出下游函数。socket类仅与上游交互。简化逻辑。 3.3 为提高效率,lua处理请求分为 连接会话和协议请求。充分利用keepalive。 具体参照文档和实现。 3.4 去掉接收数据时的模式匹配功能函数receiveutil,简化接收发送缓存的实现,使得对内存的控制更精确,内存资源管理更简单。 3.5 扩充init_by_lua功能和共享内存操作功能, ngx.sleep,ngx.exit等函数。 3.6 优化代码和修复已知bug. 3.7 支持使用mysql,http协议与上游交互,并支持简单的负载均衡和重试机制 3.8 实现ngx.nlog代替ngx.log打印网络日志 4. 详细说明见 src/tcp/doc/ 相关文档
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.