-
Notifications
You must be signed in to change notification settings - Fork 893
Close SSE connection for request in Streamable Http Server implementation #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
// If the message is a response, use the request ID from the message | ||
requestId = message.id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we instead ensure that relatedRequestId
is set for responses? (Although this is a good backup if it's not possible to guarantee.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a way to always guarantee that relatedRequestId is set for request, I'd leave this as a backup
…-connection-close
…-connection-close
…-connection-close
…-connection-close
…-connection-close
…-connection-close
Fixing connection closing, noticed when writing examples of server and client. When sending POST with list tools request, noticed that the connection still alive. The root cause was that we were looking at
relatedRequestId
instead ofmessage.id
for the response. Response would not haverelatedRequestId
, only notifications will have it.Follow up
(form stacked PR)