Bug 3217 - Invalid "Address already in use" on some systems
Summary: Invalid "Address already in use" on some systems
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Agent (show other bugs)
Version: 2.1.0
Hardware: PC All
: P2 Normal
Target Milestone: MediumPrio
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-24 10:34 CEST by Pierre Ossman
Modified: 2023-09-21 09:06 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Comment 2 Peter Åstrand cendio 2009-08-25 10:34:47 CEST
At least track now. 
Comment 3 Pierre Ossman cendio 2019-05-14 12:45:23 CEST
We repeatedly get this in the automatic system tests, and we don't really know why.
Comment 4 Pierre Ossman cendio 2023-09-21 09:05:02 CEST
I got this on a test server now, and the reason is likely this odd connection stuck in a closing state:

> [cendio@lab-210 ~]$ ss -nt | grep 904
> FIN-WAIT-1 0      168        127.0.0.1:904     127.0.0.1:904         

It eventually timed out and vsmagent could start properly.
Comment 5 Pierre Ossman cendio 2023-09-21 09:06:07 CEST
Perhaps we should be setting SO_REUSEADDR? It seems to be a bit of a norm for servers on well-known ports?

https://stackoverflow.com/questions/6960219/why-not-using-so-reuseaddr-on-unix-tcp-ip-servers

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