Skip to content

Commit

Permalink
timeout is a connection attribute
Browse files Browse the repository at this point in the history
trying to set it on a socket causes an error
  • Loading branch information
totaam committed Nov 18, 2024
1 parent 92e6cb9 commit 74cef58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,9 +1100,9 @@ def sockpathfail_cb(msg):
CID_TYPES, CID_ANY, PORT_ANY, #@UnresolvedImport
)
sock = connect_vsocket(cid=cid, port=iport)
sock.timeout = VSOCK_TIMEOUT
sock.settimeout(None)
conn = SocketConnection(sock, "local", "host", (CID_TYPES.get(cid, cid), iport), dtype)
conn.timeout = VSOCK_TIMEOUT
conn.target = "vsock://%s:%s" % (
"any" if cid==CID_ANY else cid,
"any" if iport==PORT_ANY else iport,
Expand Down

0 comments on commit 74cef58

Please sign in to comment.