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

create_udp_endpoint throws exception as getsockname() is called before socket is bound #6

Closed
htoothrot opened this issue Feb 13, 2015 · 0 comments

Comments

@htoothrot
Copy link
Contributor

import aiouv
aiouv.create_udp_endpoint(aiouv.EventLoop(), lambda *a:None, remote_addr=('127.0.0.1', 6001))

Exception:

Traceback (most recent call last):
  File "<pyshell#3>", line 2, in <module>
    aiouv.create_udp_endpoint(aiouv.EventLoop(), lambda *a:None, remote_addr=('127.0.0.1', 6001))
  File "d:\aiouv\aiouv\_transports.py", line 297, in create_udp_endpoint
    addr = handle.getsockname()
pyuv._cpyuv.error.UDPError: (-4071, 'invalid argument')
saghul added a commit that referenced this issue Feb 13, 2015
#6: always bind local_addr before getsockname call
@saghul saghul closed this as completed Feb 13, 2015
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