Skip to content

Commit

Permalink
RFB connections cannot be upgraded to 'http' / 'ws'
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 8, 2024
1 parent 3ad6c8e commit d91d34f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpra/server/server_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,8 @@ def invalid_header(self, proto:SocketProtocol, data:bytes, msg="") -> None:
return
packet_type = guess_packet_type(data)
netlog("packet-type=%s", packet_type)
if packet_type == "http":
# RFBServerProtocol doesn't support `steal_connection`:
if packet_type == "http" and hasattr(proto, "steal_connection")::
# try again to wrap this socket:
bufs = [data]

Expand Down

0 comments on commit d91d34f

Please sign in to comment.