Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
modelcontextprotocol
/
python-sdk
Public
Notifications
You must be signed in to change notification settings
Fork
3.7k
Star
23.9k
Code
Issues
240
Pull requests
272
Actions
Projects
Security and quality
6
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
fix: close all memory stream ends in client transport cleanup
- #2266
#2266
Merged
maxisbey
merged 9 commits into
main
modelcontextprotocol/python-sdk:main
from
max-153-stream-leak-fix
modelcontextprotocol/python-sdk:max-153-stream-leak-fix
Copy head branch name to clipboard
Mar 13, 2026
Conversation
Commits
9
(9)
Checks
Files changed
Merged
fix: close all memory stream ends in client transport cleanup
#2266
maxisbey
merged 9 commits into
main
modelcontextprotocol/python-sdk:main
from
max-153-stream-leak-fix
modelcontextprotocol/python-sdk:max-153-stream-leak-fix
Copy head branch name to clipboard
Commits
Commits on Mar 10, 2026
fix: close all memory stream ends in client transport cleanup
Show description for ee46896
maxisbey
committed
ee46896
View commit details
Copy full SHA for ee46896
Browse repository at this point
test: isolate stream leak tests from other tests' resource leaks
Show description for ce00a76
maxisbey
committed
ce00a76
View commit details
Copy full SHA for ce00a76
Browse repository at this point
Commits on Mar 12, 2026
test: remove ResourceWarning filter that was masking the stream leak bug
Show description for 6ed6261
maxisbey
committed
6ed6261
View commit details
Copy full SHA for 6ed6261
Browse repository at this point
refactor: use async with instead of try/finally for stream cleanup
Show description for 1e83583
maxisbey
committed
1e83583
View commit details
Copy full SHA for 1e83583
Browse repository at this point
fix: merge stream and task-group contexts to satisfy 3.11 branch coverage
Show description for 906bcfc
maxisbey
committed
906bcfc
View commit details
Copy full SHA for 906bcfc
Browse repository at this point
revert: use try/finally for sse and streamable_http stream cleanup
Show description for d297fcf
maxisbey
committed
d297fcf
View commit details
Copy full SHA for d297fcf
Browse repository at this point
Commits on Mar 13, 2026
test: use anyio's free_tcp_port fixture instead of hand-rolled helper
Show description for d375f3e
maxisbey
committed
d375f3e
View commit details
Copy full SHA for d375f3e
Browse repository at this point
chore: bump anyio minimum to 4.9 for free_tcp_port fixture
Show description for 3332cfb
maxisbey
committed
3332cfb
View commit details
Copy full SHA for 3332cfb
Browse repository at this point
test: check exc_value instead of args.object in leak hook
Show description for d532923
maxisbey
committed
d532923
View commit details
Copy full SHA for d532923
Browse repository at this point
You can’t perform that action at this time.