[PR #38] [MERGED] feat: Add connection lifetime timeout for serverless request reader #98

Closed
opened 2026-02-15 21:15:45 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/38
Author: @Yeuoly
Created: 3/12/2025
Status: Merged
Merged: 3/12/2025
Merged by: @Yeuoly

Base: mainHead: fix/infinity-loop-inside-serverless-request-reader


📝 Commits (1)

  • 3b3c6f1 feat: Add connection lifetime timeout for serverless request reader

📊 Changes

1 file changed (+14 additions, -3 deletions)

View changed files

📝 python/dify_plugin/core/server/serverless/request_reader.py (+14 -3)

📄 Description

  • Implement timeout mechanism for single connection lifetime
  • Prevent indefinite blocking on queue retrieval
  • Refresh connection timer on each successful response
  • Handle queue timeout gracefully

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/38 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 3/12/2025 **Status:** ✅ Merged **Merged:** 3/12/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix/infinity-loop-inside-serverless-request-reader` --- ### 📝 Commits (1) - [`3b3c6f1`](https://github.com/langgenius/dify-plugin-sdks/commit/3b3c6f15b49079aad37683928006fdf6e71e49b0) feat: Add connection lifetime timeout for serverless request reader ### 📊 Changes **1 file changed** (+14 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/core/server/serverless/request_reader.py` (+14 -3) </details> ### 📄 Description - Implement timeout mechanism for single connection lifetime - Prevent indefinite blocking on queue retrieval - Refresh connection timer on each successful response - Handle queue timeout gracefully --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:15:45 -05:00
yindo closed this issue 2026-02-15 21:15:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#98