Skip to content

Do not attempt to connect to Unix sockets on Windows when host is not set #192

New issue

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

By clicking “No 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? No Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2017

Conversation

elprans
Copy link
Member

@elprans elprans commented Sep 12, 2017

When the host is not passed explicitly to connect(), asyncpg tries
to find a suitable socket in a few known directories. On Windows, where
there are no file sockets, we should connect directly to 'localhost'
instead.

Fixes: #184.

@elprans elprans requested a review from 1st1 September 12, 2017 16:29
@elprans elprans force-pushed the implicit-host-connection branch from 189e3aa to ff97424 Compare September 12, 2017 16:53
… set

When the host is not passed explicitly to `connect()`, asyncpg tries
to find a suitable socket in a few known directories.  On Windows, where
there are no file sockets, we should connect directly to `localhost`
instead.

Fixes: #184.
@elprans elprans force-pushed the implicit-host-connection branch from ff97424 to 1f08463 Compare September 12, 2017 18:35
@elprans elprans merged commit 8a32fc4 into master Sep 12, 2017
@elprans elprans deleted the implicit-host-connection branch September 12, 2017 20:23
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants