Support substituting `receive()` with a different AsyncSequence
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Start by locating the Transport API and its receive() declaration, then inspect the conforming transport implementations and related tests. Determine all affected call sites and verify that a transport can provide an alternative AsyncSequence with backpressure while existing message handling and error behavior remain covered.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe.
The current Transport API mandates that the receive() function is an AsyncThrowingStream. Unfortunately, this type doesn't support backpressure. Meaning that if the messages are handled slower than they arrive, this will start (slowly or quickly) blowing up memory. At large volumes, this can cause an unintentional Denial of Service.
Describe the solution you'd like
If we can have an associatedtype instead of the AsyncThrowingStream, Swift(NIO) based libraries can provide their own implementations that support backpressure. That would eliminate this problem.
associatedtype Messages: AsyncStream<Data, any Error>
- Ngôn ngữ chính
- Swift
- Star
- 1.6k
- Fork
- 278
- Merge trung bình
- 11 giờ 15 phút
- Pull request đã merge (30 ngày)
- 46
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelcontextprotocol/swift-sdk
-
-32042 without elicitations drops JSON-RPC error dataCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
modelcontextprotocol/swift-sdk#381 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
StdioTransport traps ("Negative value is not representable") when stdio is a socket, e.g. spawned by Node clientsCó thể đã có người làm @branben đã nhận 9 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
modelcontextprotocol/swift-sdk#327 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Value decoding changes data-URL-looking JSON strings into Value.dataCó thể đã có người làm @bitbemol đã nhận 89 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
modelcontextprotocol/swift-sdk#277 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
modelcontextprotocol/swift-sdk#274 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`HTTPClientTransport` fails to build on Windows: `#if !os(Linux)` guards no longer match the `EventSource` platform conditionCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
modelcontextprotocol/swift-sdk#261 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của modelcontextprotocol/swift-sdk
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
manaflow-ai/cmux#59692 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 2 ngày
-
App 仍在下载和解析用不上的会话列表Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
vibe-cafe/vibe-usage-app#125 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
touyou/CheckItOut#39 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
touyou/IntentTodo#232 ·
Maintainer thường phản hồi trong vòng 1 ngày