Skip to content

Conversation

desertfury
Copy link
Contributor

@desertfury desertfury commented Sep 15, 2024

Removing unix socket doesn't make it available right away, so first iteration of re-starting server after releasing newer version of the app may end with "address is already in use" error (Short version is, the kernel has a TIME_WAIT state when it is closing a TCP connection graceful, meaning you can’t reuse it until that is finished).

This patch covers the error: we only return error and call cleanup if listener object could not be created

Removing unix socket doesn't make it available right away, so first iteration of starting server may end with "address is already in use" error

This patch covers the error

Signed-off-by: Mikhail Chichvarin <[email protected]>
@desertfury desertfury changed the title Update server.go Fix "address already in use" error that emerges after restarting app Feb 23, 2025
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.

1 participant