From bc2f9538f0f4ac084d5604599a10d2ccacc7c6ff Mon Sep 17 00:00:00 2001 From: Peanut Date: Tue, 21 Jul 2026 23:50:08 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=AE=B0=E5=BD=95=20SSE=20=E6=B5=81?= =?UTF-8?q?=E5=BC=8F=E4=BC=A0=E8=BE=93=E4=BF=AE=E5=A4=8D=E7=9A=84=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2026-07-21-sse-streaming-fix.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/deployment-verification/2026-07-21-sse-streaming-fix.md diff --git a/docs/deployment-verification/2026-07-21-sse-streaming-fix.md b/docs/deployment-verification/2026-07-21-sse-streaming-fix.md new file mode 100644 index 0000000..1587389 --- /dev/null +++ b/docs/deployment-verification/2026-07-21-sse-streaming-fix.md @@ -0,0 +1,28 @@ +--- +author: AI Assistant +created_at: 2026-07-21 +purpose: 记录 SSE 流式传输修复的部署验证过程 +--- + +# SSE 流式传输修复 - 部署验证 + +**部署时间:** 2026-07-21 + +**修改内容:** +1. 后端:使用 `readUtf8LineStrict()` + 显式 flush +2. nginx:添加 `proxy_buffering off` 等配置 +3. 前端:添加诊断日志(已脱敏) + +**部署步骤:** +1. 编译后端:`mvn clean install -DskipTests` ✅ +2. 上传 JAR 到服务器 ✅ +3. 重启服务 ✅ +4. 验证 Tomcat 启动 ✅ +5. 验证 SSE 接口可访问 ✅ + +**后续验证(需要用户手动测试):** +- [ ] 后端日志显示事件逐条到达(时间间隔 > 100ms) +- [ ] 前端 Console 显示 novel_delta 事件逐条接收 +- [ ] 小说内容逐字显示 +- [ ] 历史列表正确保存新生成的小说 +- [ ] 数据库 t_epic_script 表有新记录 \ No newline at end of file