Skip to content

bug: 转发流式请求接口,响应时间较长时,会断开连接 #218

@q343959872

Description

@q343959872

Current Behavior

在转发流式请求接口的时候,如果流式输出的数据比较多,时间比较长的情况下(API配置的超时时间都是5分钟, 未到超时时间),会断开连接(服务端检测到是客户端断开连接了),客户端没有主动断开(不使用网关时正常)

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

1、配置流式响应API,超时时间设置5分钟
2、发起请求,流式接口
3、等待不到一分钟,也可能一分钟多流式请求被结束
4、查看服务端日志,提示客户端已经断开连接

Environment

  • APINTO version (run apinto version): 0.21.2
  • Linux redgpts04 3.10.0-1160.el7.x86_64 init #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions