[PR #342] [MERGED] refactor: using length-prefixed chunking for Backwards invocations #457

Closed
opened 2026-02-16 01:16:01 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/342
Author: @Yeuoly
Created: 6/11/2025
Status: Merged
Merged: 6/11/2025
Merged by: @Nov1c444

Base: mainHead: fix/backwards-invocation-overflow


📝 Commits (1)

  • b4d24a4 refactor: using length-prefixed chunking for Backwards invocations

📊 Changes

4 files changed (+10 additions, -5 deletions)

View changed files

📝 internal/core/dify_invocation/real/http_request.go (+7 -1)
📝 internal/utils/http_requests/http_warpper.go (+0 -1)
📝 internal/utils/parser/chunking.go (+1 -1)
📝 internal/utils/parser/chunking_test.go (+2 -2)

📄 Description

Related PR: https://github.com/langgenius/dify/pull/20903/files

  • Adjusted the header byte manipulation in chunking functions to correctly use the first four bytes for data length.
  • Modified the HTTP request streaming function to include the length-prefixed option for improved data handling.

🔄 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-daemon/pull/342 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 6/11/2025 **Status:** ✅ Merged **Merged:** 6/11/2025 **Merged by:** [@Nov1c444](https://github.com/Nov1c444) **Base:** `main` ← **Head:** `fix/backwards-invocation-overflow` --- ### 📝 Commits (1) - [`b4d24a4`](https://github.com/langgenius/dify-plugin-daemon/commit/b4d24a455646a605677ccf201b40b0ab7a442279) refactor: using length-prefixed chunking for Backwards invocations ### 📊 Changes **4 files changed** (+10 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/dify_invocation/real/http_request.go` (+7 -1) 📝 `internal/utils/http_requests/http_warpper.go` (+0 -1) 📝 `internal/utils/parser/chunking.go` (+1 -1) 📝 `internal/utils/parser/chunking_test.go` (+2 -2) </details> ### 📄 Description Related PR: https://github.com/langgenius/dify/pull/20903/files - Adjusted the header byte manipulation in chunking functions to correctly use the first four bytes for data length. - Modified the HTTP request streaming function to include the length-prefixed option for improved data handling. --- <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-16 01:16:01 -05:00
yindo closed this issue 2026-02-16 01:16:01 -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-daemon#457