Bug 7598 - Client can hang with "Connecting to agent..." if local socket is unresponsive
Summary: Client can hang with "Connecting to agent..." if local socket is unresponsive
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Client (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
Depends on:
Reported: 2020-12-03 12:49 CET by Pierre Ossman
Modified: 2021-03-09 13:39 CET (History)
0 users

See Also:
Acceptance Criteria:


Description Pierre Ossman cendio 2020-12-03 12:49:46 CET
When the client connects it tries to check that all local ports it needs (for local devices) are unused. This process can currently hang if there is something unresponsive on one of those ports as we do a connect() to that port.

Unfortunately we don't log anything at this part, so the only thing the user sees is that the client hangs with "Connection to agent" in the status bar.

We should at least have a short timeout here, or ideally not use connect() at all. Can't we use bind()?

I saw this on a Windows 10 laptop here where something has gone terribly wrong and I have lots of connections stuck in TIME_WAIT. There is nothing listening on the port tested (62596) in this case, but all those dead connections are probably somehow still causing things to lock up.

Note You need to log in before you can comment on or make changes to this bug.