Skip to content

Commit

Permalink
RFB connections send a 12-byte initial packet
Browse files Browse the repository at this point in the history
and we don't want to log a warning if that was done for nothing,
so ignore the amount of data that we may have sent
  • Loading branch information
totaam committed Jan 24, 2024
1 parent a94c3c6 commit 9e7877d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/server/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1795,8 +1795,8 @@ def verify_connection_accepted(self, protocol: SocketProtocol):
packet_type = guess_packet_type(data)
if packet_type:
messages.append(f" looks like {packet_type!r}")
elif conn.output_bytecount == 0:
# no data was ever received or sent,
else:
# no data was ever received,
# this can happen with probes or browser connections,
# log at debug level only to avoid spamming the log:
for msg in messages:
Expand Down

0 comments on commit 9e7877d

Please sign in to comment.