Skip to content

关于ClusterBasic.ResFlushInterval参数影响content-type类型的问题 #1030

Discussion options

You must be logged in to vote

建议:

  • 建议在生成响应时,业务应正确设置Content-Type头部(例如在Web开发框架中统一支持)
  • 建议保持使用ResFlushInterval默认值,后续版本该参数可能被废除

原因:

  • 在接入层根据响应内容识别Content-Type,并添加缺失的相应头部存在一些副作用
    • 例如:使用HTTP长轮训模式推送消息,可能导致交互出现异常
  • ResFlushInterval在配置非-1时,对性能的影响也比较明显
    • 例如:配置的间隔较小且并发刷新非常多时

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@godcavalry
Comment options

@iyangsj
Comment options

Answer selected by mileszhang2016
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants