yustation
V2EX  ›  Java

关于 ResponseBodyEmitter 超时设置的疑问

  •  
  •   yustation · Dec 16, 2024 · 2758 views
    This topic created in 536 days ago, the information mentioned may be changed or developed.

    用阿里百炼的一个demo调模型玩,其中使用 ResponseBodyEmitter 转发流式数据,发现只要服务部署在服务器上,或是将浏览器调为节流模式,连接时间稍长,连接似乎会自动断开,导致前端不能正确解析数据,为什么呢?明明将超时时间设置为永不超时了

    代码截图

    1 replies    2024-12-17 09:49:49 +08:00
    ccw4wcc
        1
    ccw4wcc  
       Dec 17, 2024
    蹲一个回答
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2611 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:42 · PVG 18:42 · LAX 03:42 · JFK 06:42
    ♥ Do have faith in what you're doing.