lf-lang / lingua-franca

Intuitive concurrent programming in any language
https://www.lf-lang.org
Other
234 stars 62 forks source link

Possibility of deadlock in RTI discovery #2296

Open erlingrj opened 4 months ago

erlingrj commented 4 months ago

If some other unrelated process already has opened port 15045 then the federates might block forever waiting for an ACK from this other process. There needs to be a timeout in waiting for the ACK from RTI. In case of a timeout we must try another port.

An easier approach is to treat it as an error condition if the RTI is not able to open its designated port.