lua-resty-http 超时时间过后才能正常返回数据 谁遇到过类似问题,能不能帮着分析下,可能出现的原因。 我记着好像在组里见过类似问题,搜不到了。
能提供一下你的nginx配置和lua脚本,使用的Openresty版本吗? On 2013-6-27, at 下午7:32, clar...@gmail.com wrote: > lua-resty-http 超时时间过后才能正常返回数据 > 谁遇到过类似问题,能不能帮着分析下,可能出现的原因。 > 我记着好像在组里见过类似问题,搜不到了。 > > -- >
能提供一下你的nginx配置和lua脚本,使用的Openresty版本吗? On 2013-6-27, at 下午7:32, clar...@gmail.com wrote: > lua-resty-http 超时时间过后才能正常返回数据 > 谁遇到过类似问题,能不能帮着分析下,可能出现的原因。 > 我记着好像在组里见过类似问题,搜不到了。 > > -- > > --
Hello! On Tue, Sep 3, 2013 at 12:32 AM, zachary hu wrote: > 我也遇到了类似的问题, 在把http.new 和request写进一个fuction后,连续的请求需要在timeout时间过后才会正常。 > 由于 openresty 并没有提供官方的 lua-resty-http 库,所以你们应当使用的是某一种社区贡献的实现。你可以考虑直接报告给你所使用的实现的作者。 我个人会推荐使用 Brian Akins 的 lua-resty-http-simple 库: https://github.com/bakins/lua-resty-http-simple 当然,我也没仔细看过这个实现,但我会比较信任 Brian 同学。 Regards, -agentzh
Hello! On Tue, Sep 3, 2013 at 12:32 AM, zachary hu wrote: > 我也遇到了类似的问题, 在把http.new 和request写进一个fuction后,连续的请求需要在timeout时间过后才会正常。 > 由于 openresty 并没有提供官方的 lua-resty-http 库,所以你们应当使用的是某一种社区贡献的实现。你可以考虑直接报告给你所使用的实现的作者。 我个人会推荐使用 Brian Akins 的 lua-resty-http-simple 库: https://github.com/bakins/lua-resty-http-simple 当然,我也没仔细看过这个实现,但我会比较信任 Brian 同学。 Regards, -agentzh --