dify - 💡(How to fix) Fix SSE interface hangs with only "event: ping" and fails after load testing (Redis connection error)

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

The system should handle high concurrency gracefully or reject requests with proper error codes. error.txt

RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.14.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Deploy Dify 1.14.2 using Docker Compose. Configure an LLM application and enable the SSE (Server-Sent Events) chat interface. Use a load testing tool (e.g., Apifox) to perform a stress test on the chat interface with concurrent users (e.g., 60 users for 5 minutes). After the test, attempt to access the chat interface normally via the web UI or API. Observe the network response and backend logs.

✔️ Expected Behavior

The system should handle high concurrency gracefully or reject requests with proper error codes. After the load test, the service should automatically recover. The chat interface should return valid text responses (e.g., event: message) instead of hanging.

❌ Actual Behavior

After load testing, all chat interfaces become unusable. The client receives continuous event: ping but no actual text content (event: message). The backend logs show Redis connection errors (e.g., Redis connection pool exhausted or Connection refused). The service does not recover until the Docker containers or Redis service are manually restarted.

error.txt

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

dify - 💡(How to fix) Fix SSE interface hangs with only "event: ping" and fails after load testing (Redis connection error)