open-simulation-platform/proxy-fmu

proxyfmu seems to not retry new ports

Closed this issue · 2 comments

ljamt commented

After #48 got merged I've never seen proxyfmu retry binding to ports. Something that happened all the time previously.

Prior to #48 the errors related to binding to ports resulted in retries:

[proxyfmu] Booting FMU instance 'vessel_model'..
[proxyfmu] Could not bind: errno = 10013. Failed to bind to port 64724. Retrying with another one. Attempt 1 of 10..
[proxyfmu] FMU instance 'vessel_model' instantiated using port 57651

After #48 the process returns with status code 2:

[proxyfmu] Booting FMU instance 'vessel_model'..
[proxyfmu] External proxy process for instance 'vessel_model' returned with status 2

Ahhhh. Serve() throws the error..... Which is now outside and not catched..

Fixed in 87595af