Skip to content

Commit

Permalink
can't use 'reason' string with bare quic close method
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 6, 2024
1 parent eae72ea commit 5402a29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/net/quic/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def http_event_received(self, event: H3Event) -> None:
log.warn(f"Warning: unhandled websocket http event {event}")

def close(self, code=QuicErrorCode.NO_ERROR, reason="closing") -> None:
log("quic.close()")
log(f"quic.close({code}, {reason})")
if not self.closed:
try:
self.send_close(code, reason)
Expand All @@ -103,7 +103,7 @@ def send_close(self, code=QuicErrorCode.NO_ERROR, reason="") -> None:
return
if aioquic_version_info >= (1, 2):
# we can send the error code and message
quic.close(code, reason)
quic.close(code)
else:
quic.close()

Expand Down

0 comments on commit 5402a29

Please sign in to comment.