mirror of
https://github.com/open-webui/mcpo.git
synced 2026-11-05 01:27:39 +00:00
[PR #180] [CLOSED] fix(server_type): SSE server does not reconnect if session lost #197
Labels
No labels
bug
can't reproduce
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/mcpo#197
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/mcpo/pull/180
Author: @edelauna
Created: 6/19/2025
Status: ❌ Closed
Base:
dev← Head:main📝 Commits (1)
9cdeeb9fix(server_type): SSE server does not reconnect if session lost📊 Changes
3 files changed (+85 additions, -11 deletions)
View changed files
📝
src/mcpo/main.py(+16 -11)➕
src/mcpo/tests/test_sse.py(+34 -0)➕
src/mcpo/utils/sse.py(+35 -0)📄 Description
Changelog Entry
[0.0.16] - 2025-06-19
Fixed
Description
mcpodoes not try to re-establish the connection, resulting in any subsequent calls to fail due toasnycio.ClosedResourceError.readerfromsse_clientis never called so any errors after the client has connected never get handled.sse_clientin a loop as a background task allowing it to attempt to reconnect as long as themcposerver is active🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.