-
Notifications
You must be signed in to change notification settings - Fork 710
Closed
Description
The current implementation of the SSE client uses bufio.Scanner to read from the SSE stream.
Line 101 in 771de1d
func (c *SSEMCPClient) readSSE(reader io.ReadCloser) { |
This approach has a limitation due to the default buffer size of 64KB, which results in errors when handling large messages. The error message encountered is:
SSE stream error: bufio.Scanner: token too long
Maybe replace bufio.Scanner with bufio.Reader in the readSSE function to handle line-based reading without buffer size limitations.
Metadata
Metadata
Assignees
Labels
No labels