Skip to content

Conversation

bznein
Copy link
Collaborator

@bznein bznein commented Oct 7, 2025

This way, the simulator can be killed and immediately restarted without encountering the "address already in use" error.

I'm not sure if there is a better way to achieve this, I got some AI help to arrive to this :) But it does make my automatic testing more reliable, while without this option it would fail when restarting the simulator with the error mentioned above.

This way, the simulator can be killed and immediately restarted without
encountering the "address already in use" error.
@bznein bznein requested a review from NickeZ October 7, 2025 14:45
@bznein bznein marked this pull request as draft October 8, 2025 09:24
@bznein bznein removed the request for review from NickeZ October 8, 2025 09:24
@bznein
Copy link
Collaborator Author

bznein commented Oct 8, 2025

Moving it back to draft as I'm not sure it fixes the issue :(

@bznein bznein marked this pull request as ready for review October 8, 2025 16:07
@bznein
Copy link
Collaborator Author

bznein commented Oct 8, 2025

Reopened: I verified and it does indeed solve the issue in my tests. Using the simulator without this patch makes it fail when starting again after killing it, while with this version it works

@NickeZ
Copy link
Collaborator

NickeZ commented Oct 8, 2025

Please try this solution instead. I'm not sure what SO_REUSEADDR implicates.

#1627

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants