春哥,之前你叫我设置 proxy_read_timeout,但是 proxy_read_timeout是指两个请求之间的超时,而不是一个请求访问upstream的超时设置,官方介绍如下:
Defines a timeout for reading a response from the proxied server. The timeout is set only between two successive read operations, not for the transmission of the whole response. If the proxied server does not transmit anything within this time, the connection is closed.1)这个proxy_read_timeout满足不了要求2)proxy_read_timeout设置的单位是秒,最少只能设置1s,如果我想设置500ms的话,则lua配置文件报错3)除了这个proxy_read_timeout,还可以怎么设置发送接收超时?
--
--
邮件来自列表“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
1)这个proxy_read_timeout满足不了要求
2)proxy_read_timeout设置的单位是秒,最少只能设置1s,如果我想设置500ms的话,则lua配置文件报错
3)除了这个proxy_read_timeout,还可以怎么设置发送接收超时?