Xpra: Ticket #217: Expose client hostname as capability/stat/info

I know there's already uuid, but it would be nice to display hostname as well, to make it easier to distinguish clients to humans.

Thu, 29 Nov 2012 13:02:21 GMT - Antoine Martin: status, milestone changed

easily done, and the info stuff is due some work anyway

Sun, 09 Dec 2012 10:04:38 GMT - Antoine Martin: status changed; resolution set

done in r2209, here is a sample log message from the server:

2012-12-09 17:01:02,957 Python/Gtk linux2 client version 0.8.0 connected from 'desktop'

Note: the uuid has been dropped to "debug" log level, and we also show the server's hostname on the session info 'Connection' tab.

Sun, 09 Dec 2012 18:03:16 GMT - Antoine Martin:

No such thing as an easy/cheap change.. Spent a few hours trying to figure out why I was getting random hangs, until I narrowed it down on this change.

Calling socket.gethostname and socket.getfqdn can be expensive at times (5 seconds or more) so we now do it on startup only (see r2217) - we may even want to do this in a separate thread to allow the server to start quicker, which would also mean accepting the first client before these values are available.

Sat, 23 Jan 2021 04:48:42 GMT - migration script:

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