Skip to content

fix UDS without a baseURL #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2020
Merged

fix UDS without a baseURL #165

merged 1 commit into from
Feb 24, 2020

Conversation

weissi
Copy link
Contributor

@weissi weissi commented Feb 20, 2020

Previously, UNIX Domain Sockets would only work if the URL also had a
"base URL". If it didn't have a base URL, it would try to connect to the
empty string which would fail :).

Now, we support both cases:

  • URLs with a baseURL (the path to the UDS) and a path (actual path)
  • URLs that just have an actual path (path to the UDS) where we'll just
    use "/" as the URL's path

@weissi weissi requested review from artemredkin and Lukasa February 20, 2020 18:33
Previously, UNIX Domain Sockets would only work if the URL also had a
"base URL". If it didn't have a base URL, it would try to connect to the
empty string which would fail :).

Now, we support both cases:
- URLs with a baseURL (the path to the UDS) and a path (actual path)
- URLs that just have an actual path (path to the UDS) where we'll just
  use "/" as the URL's path
@weissi weissi merged commit de74219 into swift-server:master Feb 24, 2020
@weissi weissi deleted the jw-fix-uds branch February 24, 2020 17:52
@weissi weissi added this to the 1.2.0 milestone Feb 25, 2020
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