Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

长连接请求都是超过60s返回状态码504 #3096

Closed
supers66 opened this issue May 30, 2020 · 4 comments
Closed

长连接请求都是超过60s返回状态码504 #3096

supers66 opened this issue May 30, 2020 · 4 comments

Comments

@supers66
Copy link

如果都是最新的,则保持住请求60秒,如果60秒内没有配置变化,则返回HttpStatus 304。如果60秒内有配置变化,则返回对应namespace的最新notificationId, HttpStatus 200

按照上面实际验证发现在60秒以内,如果有配置变化是正常的
如果60秒以内没有配置变化,直接等待超过60秒返回504...

@zouyx
Copy link
Member

zouyx commented May 30, 2020

如果是504,我觉得是代理层的超时时间没配置正确?如果正确应该是apollo metaserver 返回的304

@supers66
Copy link
Author

@zouyx 请问一下,如果是nginx的话,除了设置keepalive_timeout 还要设置其他的吗?谢谢

@zouyx
Copy link
Member

zouyx commented May 30, 2020

@zouyx 请问一下,如果是nginx的话,除了设置keepalive_timeout 还要设置其他的吗?谢谢

ng的超时时间一定要比 client 的要大,我记得java client 默认是60s,ng 的默认是75s,应该没问题才对?

@fenglangjunzi
Copy link

Good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants