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 17, 2024
1 parent 121c33d commit c0448d2
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 @@ -1284,9 +1284,9 @@ def sockpathfail_cb(msg) -> NoReturn:
CID_TYPES, CID_ANY, PORT_ANY,
)
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 c0448d2

Please sign in to comment.