Groups
Groups
Sign in
Groups
Groups
openresty
Conversations
Labels
cosocket
flamegraph
gdb
lua
luajit
openresty
spdy
stap
systemtap
websocket
About
Send feedback
Help
openresty
1–30 of 4154
这里是 OpenResty 中文邮件列表,用于中文用户讨论 OpenResty 软件包以及 Nginx 和 Lua 相关的所有技术问题。
OpenResty 通过汇聚各种设计精良的 Nginx 模块和 Lua 库,将 Nginx 有效地变成一个强大的 Web 应用服务器,以便让 Web 开发人员使用 Lua 脚本语言,快速构造出足以胜任 10K+ 并发连接的非阻塞的 Web 应用。
OpenResty 英文邮件列表在这里:
https://groups.google.com/
group/openresty-en
订阅方法:发送空白邮件到地址
openresty+
subscribe@googlegroups.com
即可完成订阅。
发贴:在完成订阅之后,直接发送你的讨论邮件到地址
openr
esty@googlegroups.com
官网:
http://openresty.org/
仓库:
https://github.com/
agentzh/ngx_openresty
维护者: 章亦春 (agentzh)
http://agentzh.org/
Mark all as read
Report group
0 selected
hf d
6/20/20
tcp连接的setkeepalive方法返回error
我直接用https://github.com/chronolaw/openresty_dev这个仓库的代码测试keepalive,运行 curl 127.1:81/cosocket -d "
unread,
cosocket
lua
openresty
tcp连接的setkeepalive方法返回error
我直接用https://github.com/chronolaw/openresty_dev这个仓库的代码测试keepalive,运行 curl 127.1:81/cosocket -d "
6/20/20
Geoff zhang
,
DeJiang Zhu
4
7/28/19
使用consocket实现socks5,在代理 https的时候页面报错
抓包中显示,在建立TLS连接的过程中,只到 Server Hello Done 就停止了, openresty在receive的时候就超时了。 是不是不能用receive('*a'),
unread,
cosocket
openresty
使用consocket实现socks5,在代理 https的时候页面报错
抓包中显示,在建立TLS连接的过程中,只到 Server Hello Done 就停止了, openresty在receive的时候就超时了。 是不是不能用receive('*a'),
7/28/19
马永泽
6/26/19
可否在 balancer_by_lua_block 中拒绝连接
在stream模块中,可否在 balancer_by_lua_block 中拒绝连接,在 可否在 balancer_by_lua_block 中判断达到某种条件才可以转发到后端,没有达到某种条件就关闭
unread,
cosocket
lua
openresty
可否在 balancer_by_lua_block 中拒绝连接
在stream模块中,可否在 balancer_by_lua_block 中拒绝连接,在 可否在 balancer_by_lua_block 中判断达到某种条件才可以转发到后端,没有达到某种条件就关闭
6/26/19
三角形小于零
, …
Ming
6
6/11/19
在 log_by_lua* 收集到的数据如何存储到 redis ?
ngx.timer.every 不属于 cosocket API,是可以写在 init_worker_by_lua 中的。 然后你在 timer 里面调用 cosocket API 三角形小于零
unread,
cosocket
openresty
在 log_by_lua* 收集到的数据如何存储到 redis ?
ngx.timer.every 不属于 cosocket API,是可以写在 init_worker_by_lua 中的。 然后你在 timer 里面调用 cosocket API 三角形小于零
6/11/19
Bocer
,
Yuansheng Wang
2
1/8/19
stream-lua的receive(1)方法的正确使用方法?
On Mon, Jan 7, 2019 at 5:17 PM Bocer <yyg...@gmail.com> wrote: 想使用openresty搭建一个业务的路由系统,各系统间都是
unread,
cosocket
openresty
stream-lua的receive(1)方法的正确使用方法?
On Mon, Jan 7, 2019 at 5:17 PM Bocer <yyg...@gmail.com> wrote: 想使用openresty搭建一个业务的路由系统,各系统间都是
1/8/19
shengliang zhu
,
tokers
10
11/7/18
ngx.print return error "header only"
我的疑问被完全解答了,谢谢你的帮助 !!! 在 2018年11月7日星期三 UTC+8下午6:02:25,tokers写道: Hello! 不会。 头部可以在使用 ngx.print/ngx.say 时
unread,
cosocket
lua
openresty
ngx.print return error "header only"
我的疑问被完全解答了,谢谢你的帮助 !!! 在 2018年11月7日星期三 UTC+8下午6:02:25,tokers写道: Hello! 不会。 头部可以在使用 ngx.print/ngx.say 时
11/7/18
tokers
10/9/18
[ANN] lua-resty-request v0.4 Release
Hello! The lua-resty-request v0.4 has been released, now you can install it from OPM, LuaRocks or by
unread,
cosocket
lua
openresty
[ANN] lua-resty-request v0.4 Release
Hello! The lua-resty-request v0.4 has been released, now you can install it from OPM, LuaRocks or by
10/9/18
helin...@gmail.com
, …
Appla lol
12
3/28/19
cosoket chunk reader返回数据最大为4090字节
谢谢Frank Yu, tweyseo, Appla的耐心回复。我的问题已经解决了。 背景及原因如下: - 背景: 因为cosocket stream无法支持https双向认证访问后端backend,
unread,
cosocket
openresty
cosoket chunk reader返回数据最大为4090字节
谢谢Frank Yu, tweyseo, Appla的耐心回复。我的问题已经解决了。 背景及原因如下: - 背景: 因为cosocket stream无法支持https双向认证访问后端backend,
3/28/19
魏海通
, …
Jianqiang Wang
10
8/1/18
如何早点结束慢链接
https://github.com/nginx/nginx/commit/527cac297952f802b834704a74436a4fa55c3957#diff-
unread,
cosocket
lua
openresty
如何早点结束慢链接
https://github.com/nginx/nginx/commit/527cac297952f802b834704a74436a4fa55c3957#diff-
8/1/18
huawei...@gmail.com
5/29/18
在nginx的c代码里面访问第三方服务的有效方法
春哥,你好 我基于nginx stream + openssl开发了一个TCP反向代理服务,在ssl握手过程中需要访问一个第三方的服务。请问怎么实现比较好? 我参考了你之前建议的一些方案: 1. 用
unread,
cosocket
在nginx的c代码里面访问第三方服务的有效方法
春哥,你好 我基于nginx stream + openssl开发了一个TCP反向代理服务,在ssl握手过程中需要访问一个第三方的服务。请问怎么实现比较好? 我参考了你之前建议的一些方案: 1. 用
5/29/18
Tianyi Zhang
, …
Zexuan Luo
7
2/28/18
局部变量诡异更改导致的coredump
看 ctx 输出,貌似 ctx 指向的内存被 free 掉了,所以里面才有一些垃圾数据? 也许某个地方提前释放了 r->pool 指向的内存。不过奇怪的是 r->ctx 却是正常的(后面又
unread,
cosocket
gdb
lua
openresty
局部变量诡异更改导致的coredump
看 ctx 输出,貌似 ctx 指向的内存被 free 掉了,所以里面才有一些垃圾数据? 也许某个地方提前释放了 r->pool 指向的内存。不过奇怪的是 r->ctx 却是正常的(后面又
2/28/18
luke
,
tokers
5
1/9/18
stream模块当sock:receive还未超时,如何能快速关闭连接?
Hi! 从这个错误信息来看是你用的这个 cosocket 对象不包含 close 函数。 对 stream 子系统不太熟悉 :) 不知道是不是和 http 子系统类似,也有着不同类型的 cosocket
unread,
cosocket
openresty
stream模块当sock:receive还未超时,如何能快速关闭连接?
Hi! 从这个错误信息来看是你用的这个 cosocket 对象不包含 close 函数。 对 stream 子系统不太熟悉 :) 不知道是不是和 http 子系统类似,也有着不同类型的 cosocket
1/9/18
luke
,
tokers
3
1/5/18
使用 stream-lua-nginx-module 模块如何获取对方的ip地址?
的确如此,感谢! 在 2018年1月5日星期五 UTC+8下午3:04:53,tokers写道: Hi! strem-lua-nginx-module 不是很了解,但是要拿客户端的 ip 和 port,
unread,
cosocket
lua
openresty
使用 stream-lua-nginx-module 模块如何获取对方的ip地址?
的确如此,感谢! 在 2018年1月5日星期五 UTC+8下午3:04:53,tokers写道: Hi! strem-lua-nginx-module 不是很了解,但是要拿客户端的 ip 和 port,
1/5/18
pickl...@gmail.com
,
tokers
5
12/21/17
resty.http在执行阻塞式http请求(比如long poll之类的)期间,是否可以检测到ngx.worker.exiting()并终止当前的http请求?
另外如果你的这个业务,全局只需要一个定时器,不妨交给 cache manager process 或者 priviledge_agent 这样的 helper 进程来处理。这两个进程虽然不监听端口,但是
unread,
cosocket
openresty
resty.http在执行阻塞式http请求(比如long poll之类的)期间,是否可以检测到ngx.worker.exiting()并终止当前的http请求?
另外如果你的这个业务,全局只需要一个定时器,不妨交给 cache manager process 或者 priviledge_agent 这样的 helper 进程来处理。这两个进程虽然不监听端口,但是
12/21/17
赵安家
, …
00 00
7
4/26/20
ngx.socket.tcp 的一点疑问
真的是一个难以想象的问题,没想到最后加一个\n解决……之前一直以为 lua_code_cache on/off 对flush buffer有影响(在我这确实是这个现象,lua_code_cache
unread,
cosocket
openresty
ngx.socket.tcp 的一点疑问
真的是一个难以想象的问题,没想到最后加一个\n解决……之前一直以为 lua_code_cache on/off 对flush buffer有影响(在我这确实是这个现象,lua_code_cache
4/26/20
g_l...@qq.com
, …
Sen Han
17
8/8/17
f.dns.tohostname 能用cosocket 替代吗 or 用其他的替代?
很感谢你。我搞定了。 能加你微信不。 在 2017年8月9日星期三 UTC+8上午10:46:58,yunthanatos写道: local resolver = require "resty
unread,
cosocket
openresty
f.dns.tohostname 能用cosocket 替代吗 or 用其他的替代?
很感谢你。我搞定了。 能加你微信不。 在 2017年8月9日星期三 UTC+8上午10:46:58,yunthanatos写道: local resolver = require "resty
8/8/17
ytl m
,
DeJiang Zhu
5
3/19/17
在用ngx.socket.tcp的receive接收数据的时候,用top看内存使用量一直增加,这是为什么呢?
谢谢回复。 1,版本 nginx version: openresty/1.11.2.2 2,没有测试增加到什么地步,在一次请求结束的时候top看RES不会下降,第二次再继续请求同一个uri基本不变,
unread,
cosocket
在用ngx.socket.tcp的receive接收数据的时候,用top看内存使用量一直增加,这是为什么呢?
谢谢回复。 1,版本 nginx version: openresty/1.11.2.2 2,没有测试增加到什么地步,在一次请求结束的时候top看RES不会下降,第二次再继续请求同一个uri基本不变,
3/19/17
正好的温度
2/14/17
在使用ngx.thread,redis:lpop,http请求时,遇到lpop错乱或者取不出来值的问题
queue.lua _product = {} _product['default'] = { redo_num = 3, redo_time = 300, do_num = 10, }
unread,
cosocket
openresty
在使用ngx.thread,redis:lpop,http请求时,遇到lpop错乱或者取不出来值的问题
queue.lua _product = {} _product['default'] = { redo_num = 3, redo_time = 300, do_num = 10, }
2/14/17
nacoz
1/13/17
请教如何在thread中正确关闭通过参数传进来的cosocket连接(stream-lua-nginx-module)
为了实现类似 nodejs 的 pipe 功能,stream-lua-nginx-module 打了https://github.com/openresty/stream-lua-nginx-
unread,
cosocket
openresty
请教如何在thread中正确关闭通过参数传进来的cosocket连接(stream-lua-nginx-module)
为了实现类似 nodejs 的 pipe 功能,stream-lua-nginx-module 打了https://github.com/openresty/stream-lua-nginx-
1/13/17
tan winfan
, …
Ming
15
12/21/16
stream-lua-nginx-module 当前这个版本可以用在生产环境吗?在本地跑了一个demo发现接收不了数据
另外, 有些 MySQL proxy 也可以帮你完成批量插入的问题。 在 2016年12月22日 上午11:11,Ming <moonbi...@gmail.com>写道: 如果你的
unread,
cosocket
lua
openresty
stream-lua-nginx-module 当前这个版本可以用在生产环境吗?在本地跑了一个demo发现接收不了数据
另外, 有些 MySQL proxy 也可以帮你完成批量插入的问题。 在 2016年12月22日 上午11:11,Ming <moonbi...@gmail.com>写道: 如果你的
12/21/16
caijianb...@gmail.com
,
DeJiang Zhu
2
11/17/16
stream-lua-nginx-module调用socket:receive返回time out
Hello 在 2016年11月16日 下午7:38, <caijianb...@gmail.com>写道: 各位朋友好,我最近开始用Openresty搭建一个tcp服务器,遇到
unread,
cosocket
lua
openresty
stream-lua-nginx-module调用socket:receive返回time out
Hello 在 2016年11月16日 下午7:38, <caijianb...@gmail.com>写道: 各位朋友好,我最近开始用Openresty搭建一个tcp服务器,遇到
11/17/16
嘟嘟噜
,
DeJiang Zhu
2
10/15/16
如何通过代理发起请求?
Hello 首先得看你的代理支持什么协议 如果你能自己设置代理,用 stream 系统做一个 tcp proxy 那把 ip_address 改成你的代理 ip,stream 的 upstream 设置
unread,
cosocket
lua
openresty
websocket
如何通过代理发起请求?
Hello 首先得看你的代理支持什么协议 如果你能自己设置代理,用 stream 系统做一个 tcp proxy 那把 ip_address 改成你的代理 ip,stream 的 upstream 设置
10/15/16
shixiao...@gmail.com
,
YuanSheng Wang
2
10/13/16
定时任务ngx.timer 中 ,调用 sock:setkeepalive 出错
2016-10-10 20:43 GMT+08:00 <shixiao...@gmail.com>: local sock = ngx.socket.tcp(); sock:
unread,
cosocket
定时任务ngx.timer 中 ,调用 sock:setkeepalive 出错
2016-10-10 20:43 GMT+08:00 <shixiao...@gmail.com>: local sock = ngx.socket.tcp(); sock:
10/13/16
莫言梦
, …
bryant yan
3
9/5/19
缓存不存在时,如何禁止 srcache_fetch 输出 cache sent invalid status line 以及 cache sent truncated response body 呢?
https://github.com/openresty/lua-resty-redis/tree/v0.2 A non-nil Redis "bulk reply" results
unread,
cosocket
lua
luajit
openresty
缓存不存在时,如何禁止 srcache_fetch 输出 cache sent invalid status line 以及 cache sent truncated response body 呢?
https://github.com/openresty/lua-resty-redis/tree/v0.2 A non-nil Redis "bulk reply" results
9/5/19
leopar...@gmail.com
,
DeJiang Zhu
2
9/11/16
ngx.socket.tcp可不可以在init_worker_by_lua*中使用
Hello 在 2016年9月10日 下午1:39, <leopar...@gmail.com>写道: openresty的文档中ngx.socket.tcp的context没有
unread,
cosocket
openresty
ngx.socket.tcp可不可以在init_worker_by_lua*中使用
Hello 在 2016年9月10日 下午1:39, <leopar...@gmail.com>写道: openresty的文档中ngx.socket.tcp的context没有
9/11/16
calvin.zhang
, …
DeJiang Zhu
3
8/20/16
如何检测长连接客户端是否掉线
Helllo 最保险的是自己实现应用层的心跳,心跳超时即可认为连接坏了 在 2016年8月18日 下午5:11,calvin.zhang <ihuei...@gmail.com>写道:
unread,
cosocket
lua
openresty
websocket
如何检测长连接客户端是否掉线
Helllo 最保险的是自己实现应用层的心跳,心跳超时即可认为连接坏了 在 2016年8月18日 下午5:11,calvin.zhang <ihuei...@gmail.com>写道:
8/20/16
7631...@qq.com
,
YuanSheng Wang
2
8/10/16
请教下,set_keepalive(10000, 100)这个值你们是根据什么来设置的呢
根据你生产系统平均工作使用情况来设置。 比如正常压力下,看到有 100 个并发请求在并行,那么连接池的大小就可以设置为 100。 前面的空闲时间,通常10s 左右即可,除非你的流量非常不稳定,抖动很大
unread,
cosocket
openresty
请教下,set_keepalive(10000, 100)这个值你们是根据什么来设置的呢
根据你生产系统平均工作使用情况来设置。 比如正常压力下,看到有 100 个并发请求在并行,那么连接池的大小就可以设置为 100。 前面的空闲时间,通常10s 左右即可,除非你的流量非常不稳定,抖动很大
8/10/16
wwaz wwaz
,
DeJiang Zhu
7
10/12/16
如何使server块中的rewrite_by_lua_file和location块中的rewrite_by_lua_file对一个请求同时生效?
多谢豆浆哥的解答! 1 其实我开始也是想用 “引用模块中的某个主函数 require("xxx").run()“ 这种方式的。 不过很多脚本并没有封住为一个模块,只是写了一些
unread,
cosocket
lua
luajit
openresty
如何使server块中的rewrite_by_lua_file和location块中的rewrite_by_lua_file对一个请求同时生效?
多谢豆浆哥的解答! 1 其实我开始也是想用 “引用模块中的某个主函数 require("xxx").run()“ 这种方式的。 不过很多脚本并没有封住为一个模块,只是写了一些
10/12/16
wwaz wwaz
7/29/16
如何使server块中的rewrite_by_lua_file和location块中的rewrite_by_lua_file对一个请求同时生效?
配置文件如下: 在请求test2接口时,在server块配置的serv_rewrite.lua脚本得不到执行,执行了loc2_rewrite.lua脚本。 其实这个原因我是知道的,就是rewrite阶段
unread,
cosocket
lua
luajit
openresty
如何使server块中的rewrite_by_lua_file和location块中的rewrite_by_lua_file对一个请求同时生效?
配置文件如下: 在请求test2接口时,在server块配置的serv_rewrite.lua脚本得不到执行,执行了loc2_rewrite.lua脚本。 其实这个原因我是知道的,就是rewrite阶段
7/29/16
tao244...@gmail.com
,
Yichun Zhang (agentzh)
5
7/13/16
lua-resty-mysql 数据库使用遇到的两个问题?
确实是自己的用法问题,没有读取完当前的SQL返回结果。非常感谢agentzh!
unread,
cosocket
lua
openresty
lua-resty-mysql 数据库使用遇到的两个问题?
确实是自己的用法问题,没有读取完当前的SQL返回结果。非常感谢agentzh!
7/13/16