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

Error connecting via unix socket #17

Closed
jgrinols opened this issue Oct 7, 2021 · 1 comment
Closed

Error connecting via unix socket #17

jgrinols opened this issue Oct 7, 2021 · 1 comment

Comments

@jgrinols
Copy link

jgrinols commented Oct 7, 2021

I'm getting the following error when attempting to connect using a unix socket:

Traceback (most recent call last): File "asyncmy/connection.pyx", line 532, in asyncmy.connection.Connection.connect File "asyncmy/connection.pyx", line 408, in asyncmy.connection.Connection._set_nodelay File "/usr/local/lib/python3.9/asyncio/trsock.py", line 82, in setsockopt self._sock.setsockopt(*args, **kwargs) OSError: [Errno 95] Operation not supported

It looks like there's a call to set TCP_NODELAY on the socket regardless of whether it's a TCP or Unix socket:

self._set_nodelay(True)

long2ice added a commit that referenced this issue Oct 8, 2021
@long2ice
Copy link
Owner

long2ice commented Oct 8, 2021

Fixed

@long2ice long2ice closed this as completed Oct 8, 2021
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

No branches or pull requests

2 participants