Commit 4bf5296
committed
Fix close_sse_stream to close reader and improve demo output (SEP-1699)
- Close request stream receiver in close_sse_stream() so sse_writer loop
exits cleanly instead of hitting ClosedResourceError
- Log reconnections at INFO level so they're visible without DEBUG
- Remove misleading "Watch DEBUG logs" text from demo client
- Fix type annotation (str instead of str | None)1 parent 7a83017 commit 4bf5296
File tree
3 files changed
+12
-9
lines changed- examples/clients/sse-polling-client/mcp_sse_polling_client
- src/mcp
- client
- server
3 files changed
+12
-9
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | | - | |
| 49 | + | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
| 402 | + | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
| 425 | + | |
429 | 426 | | |
430 | 427 | | |
431 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
210 | 215 | | |
211 | 216 | | |
212 | 217 | | |
| |||
545 | 550 | | |
546 | 551 | | |
547 | 552 | | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
548 | 556 | | |
549 | 557 | | |
550 | 558 | | |
| |||
0 commit comments