feat: introduce TransportEOFError for handling closed transport scenarios and update transport classes to raise it

This commit is contained in:
Yeuoly
2026-01-01 18:46:08 +08:00
parent 180fdffab1
commit 2673fe05a5
8 changed files with 163 additions and 27 deletions

View File

@@ -0,0 +1,4 @@
class TransportEOFError(Exception):
"""Exception raised when attempting to read from a closed transport."""
pass