mirror of
https://github.com/open-webui/mcpo.git
synced 2026-07-23 12:15:22 -04:00
[PR #180] [CLOSED] fix(server_type): SSE server does not reconnect if session lost #188
Reference in New Issue
Block a user
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.