大家好! 本来想使用ngx.thread.wait归并多台上游服务器返回结果。 但是返回最先的那个服务器结果就退出了。 请问有什么好的办法吗? 使用多个ngx.thread.spawn加lua全局变量可以实现吗?
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
你试试,真的不行的。------------------ 原始邮件 ------------------发件人: "xiaojie liu"<jie1...@gmail.com>发送时间: 2016年12月18日(星期天) 晚上9:35收件人: "openresty"<open...@googlegroups.com>;主题: Re: [openresty] 使用lua如何归并上游多台服务器返回的结果呢?
那应该是你的代码逻辑有问题。用thread.wait就能实现这个功能。
在 2016年12月18日 下午8:37, <4647...@qq.com>写道:
大家好! 本来想使用ngx.thread.wait归并多台上游服务器返回结果。 但是返回最先的那个服务器结果就退出了。 请问有什么好的办法吗? 使用多个ngx.thread.spawn加lua全局变量可以实现吗?
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
已经搞定了 谢谢!------------------ 原始邮件 ------------------
发件人: "Zexuan Luo";<spacewa...@gmail.com>;发送时间: 2016年12月19日(星期一) 上午9:45
收件人: "openresty"<openresty@googlegroups.com>;
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com