Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
openresty使用 发送http子请求的问题
li85841575
大家好:
在 openresty中,我使用
https://github.com/liseen/lua-resty-http
的 lua http包 来调用http服务。
但是每隔一分钟就回出现 socket connected faild ,仔细排查了一下,调用方和本机压力都不太大。
增加超时时间不起作用,使用 http请求中设置 keep-alive后 lua socket..keepalve()报错,报有没有发送完的数据。
现在想改用
ngx.location.capture 发送子请求,但是用
ngx.location.capture如何控制超时时间?
wangxi968
被capture的locaion中会有反向代理,可以为反向代理设置超时时间,包括连接、读和写