-
Notifications
You must be signed in to change notification settings - Fork 34
Crash with an unhelpful error #35
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
Comments
Try with patch please, and let me know if it helps. |
Now I get a new error linked with "read":
|
yes. Try replacing 'localhost' with '127.0.0.1' in the example |
Thanks, it works! Can I ask what the problem is/was? |
puka tries ipv6 first, so your localhost was resolved as |
isn't that enough reason to prefer IPv4 over IPv6? As discussed in #27 both choices are wrong, but to me it looks like one of them is "less wrong" :) |
@schmir for me it looks more like a bug in Rabbit, Rabbit should happily listen on ipv6 by default. |
the people who try puka and run into problems because puka tries IPv6 first, probably just use another library. It doesn't matter to them if RabbitMQ should happily listen on IPv6. Unless there's a good reason to use IPv6 first, please consider changing that! |
Okay, so what should Puka do?
|
I think it should iterate over all results from getaddrinfo until the first connection attempt succeeds (that's also what python's create_connection does). since the current non-blocking connection method complicates this, I would change it to a blocking connect if getaddrinfo returns more than one result, and use non-blocking connect if getaddrinfo returns exactly one result. you've already had that discussion in #11 |
You've started it here.
That's impossible with current API for Puka. With current design there is exactly one Alternatively we could make In other words: it's not that simple and we can't iterate over the results of getaddrinfo without making significant design changes. |
Marek Majkowski [email protected] writes:
It looks like I can call connect multiple times if the connection
It's already blocking in getaddrinfo. |
Because there is no other choice. Fair enough, let's move the discussion to #36 |
When I try to run the
recieve.py
example I get an unhelpful error:This is python 2.7, installed with brew on an OSX Mountain Lion machine. RabbitMQ runs on the standard port.
The text was updated successfully, but these errors were encountered: