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