Skip to content

Conversation

@jorgemanrubia
Copy link
Contributor

@jorgemanrubia jorgemanrubia commented Jul 9, 2021

This fixes a problem where it fails to reuse the same instance of the app when using multiple hostnames with different names (multiple symlinks pointing to the same folder).

The bug was introduced in #270. The patch is based on adding the checksum in all cases when a symlink is involved, not only when the names don't match. If not, it can happen that it's not added if the name matches for the first execution, which
results in not finding the app instance later, resulting in an error "There is already a server bound to..."

Fixes #280

cc @hellvinz @nonrational

This fixes a problem where it fails to reuse the same instance of the app
when using multiple hostnames with different names (multiple symlinks pointing
to the same folder).

The bug was introduced in puma#270. The patch is based on adding the checksum in
all cases when a symlink is involved, not only when the names don't match. If not,
it can happen that it's not added if the name matches for the first execution, which
results in not finding the app instance later, resulting in an error "There is already
a server bound to..."

Fixes puma#280
@nonrational
Copy link
Member

Thanks @jorgemanrubia!

@nonrational nonrational merged commit accd260 into puma:master Jul 9, 2021
@jorgemanrubia
Copy link
Contributor Author

Thanks for merging @nonrational. Any chance we can get a brew release with this one 🙏?

@nonrational
Copy link
Member

@jorgemanrubia v0.16.1 is now available at puma/puma/puma-dev 👍

@jorgemanrubia
Copy link
Contributor Author

Thank you @nonrational 🙏🙏

@jorgemanrubia jorgemanrubia deleted the shared-instances-fix branch July 10, 2021 18:42
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.

Multiple hostname support no longer working

2 participants