Xpra: Ticket #658: Xpra Proxy no longer working with 0.14.2

Hello,

running "xpra proxy", "xpra start" (both CentOS 7), and "xpra attach" (on Win7), I was able to connect using version 0.13.8. However, using the same setup with 0.14.2, the server gives me the following error:

2014-08-22 22:20:00,850 invalid_header(Protocol(SocketConnection(('127.0.0.1', 31001) - ('127.0.0.1', 59099))), "hello: {'named_cursors': 1, 'pango.version': '1.29.4', 'xkbmap_layout': 'de', 'proxy.python.full_ver"...)
2014-08-22 22:20:00,850 will process ui packet gibberish
2014-08-22 22:20:00,850 Received uninterpretable nonsense from Protocol(SocketConnection(('127.0.0.1', 31001) - ('127.0.0.1', 59099))): invalid packet format, not an xpra client?
2014-08-22 22:20:00,850  data: "hello: {'named_cursors': 1, 'pango.version': '1.29.4', 'xkbmap_layout': 'de', 'proxy.python.full_ver"...
2014-08-22 22:20:00,851 Disconnecting client Protocol(SocketConnection(('127.0.0.1', 31001) - ('127.0.0.1', 59099))): invalid packet format, not an xpra client?

From what I got until now, the server fails in xpra/net/protocol.py in the line "if read_buffer[0] not in ("P", ord("P")):" If a client connects directly (i.e., without proxy), a prefix of 8 Bytes is sent which begins with a "P" (0x50) character. However, the proxy does not seem to forward these 8 bytes. The server then checks if the first byte is a "P". However, it is an "h" (from "hello:...") and therefore fails.

Thanks in advance for any help! Stephan



Sat, 23 Aug 2014 01:43:01 GMT - Antoine Martin: owner, priority, description changed

Sorry about that, r7420 should fix this. (r7421 is also worth having)

Does that work for you?

Will backport both to v0.14.x and make a new release.


Sat, 23 Aug 2014 03:10:50 GMT - Antoine Martin: status changed; resolution set

Backport to v0.14.x in r7422, feel free to re-open if I've missed anything.


Sat, 23 Aug 2014 10:22:11 GMT - sschnitzer:

It works after I applied both, r7420 and r7421. Thanks!


Sat, 23 Jan 2021 05:02:11 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/658