fix: succesfull echo

This commit is contained in:
Akash Mondal
2025-06-30 12:58:11 +00:00
committed by lla-dane
parent bbe632bd85
commit 8f0cdc9ed4
5 changed files with 26 additions and 19 deletions

View File

@ -966,7 +966,7 @@ class QUICConnection(IRawConnection, IMuxedConn):
self, event: events.ConnectionTerminated
) -> None:
"""Handle connection termination."""
logger.debug(f"QUIC connection terminated: {event.reason_phrase}")
print(f"QUIC connection terminated: {event.reason_phrase}")
# Close all streams
for stream in list(self._streams.values()):

View File

@ -360,10 +360,6 @@ class QUICStream(IMuxedStream):
return
try:
# Signal read closure to QUIC layer
self._connection._quic.reset_stream(self._stream_id, error_code=0)
await self._connection._transmit()
self._read_closed = True
async with self._state_lock:
@ -590,6 +586,7 @@ class QUICStream(IMuxedStream):
exc_tb: TracebackType | None,
) -> None:
"""Exit the async context manager and close the stream."""
print("Exiting the context and closing the stream")
await self.close()
def set_deadline(self, ttl: int) -> bool: