Skip to content
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

Add support for Unix domain socket connection #101

Merged
merged 1 commit into from
Dec 31, 2019

Conversation

horus
Copy link
Contributor

@horus horus commented Sep 12, 2019

As discussed in #95, this commit brings back the support for Unix domain socket connectivity.

The parser in readHostPortM now works this way:

  • It attempts to parse the input as hostname or hostname:port (the old behavior),
  • in non-windows systems, if above failed, check whether hostname equals "unix", then take the rest part as the path to the socket file.

If someone really named their host unix together with a all-digits file name in the current working directory, then he/she can always specify the path like unix:./8080 to avoid being parsed as a hostname-port pair.

Update corresponding parser in readHostPortM
Update showHostPort
@VictorDenisov VictorDenisov merged commit 4d1b2a0 into mongodb-haskell:master Dec 31, 2019
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