Xpra: Ticket #73: Error message when DNS goes wrong

If I try to connect too soon, ie. when DNS is not working (resolv.conf not done, etc.), I get this error:

$ xpra attach ssh:host:65
ssh: Could not resolve hostname host: Name or service not known
using dbusnotify: <class 'dbus.proxies.Interface'>(org.freedesktop.Notifications)
Exception in thread write_loop:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/xpra/xpra/protocol.py", line 171, in _write_thread_loop
    written = untilConcludes(self._conn.write, buf)
  File "/usr/lib/xpra/xpra/protocol.py", line 69, in untilConcludes
    return f(*a, **kw)
  File "/usr/lib/xpra/xpra/protocol.py", line 38, in write
    return os.write(self._writeable.fileno(), buf)
ValueError: I/O operation on closed file
connection lost: empty marker in read queue
Connection lost

Xpra, svn revision 453 with 0 local changes

Fri, 20 Jan 2012 13:05:43 GMT - Antoine Martin: owner, status changed

should be able to detect the error code from ssh, hopefully without breaking putty etc

Fri, 20 Jan 2012 16:58:28 GMT - Antoine Martin: status changed; resolution set

done in r459, here is the output now shown:

ssh: Could not resolve hostname blah.dsdsd: Name or service not known
cannot read using ['ssh', '-T', 'blah.dsdsd']: the SSH process has terminated!
cannot write using ['ssh', '-T', 'blah.dsdsd']: the SSH process has terminated!

Mon, 20 Feb 2012 19:23:41 GMT - Antoine Martin: milestone changed; version set

Sat, 23 Jan 2021 04:44:47 GMT - migration script:

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