Skip to content

Commit dd6e61f

Browse files
committed
fix SseLineSubscriber will not request after default 256 request
1 parent 713ee1a commit dd6e61f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/src/main/java/io/modelcontextprotocol/client/transport/ResponseSubscribers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected void hookOnSubscribe(Subscription subscription) {
141141

142142
@Override
143143
protected void hookOnNext(String line) {
144-
144+
request(1);
145145
if (line.isEmpty()) {
146146
// Empty line means end of event
147147
if (this.eventBuilder.length() > 0) {

0 commit comments

Comments
 (0)