Handle exceptions from python without ipv6 support #952
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "ipv6"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello.
PyBitmessage shown many exceptions on my linux laptop because of python installed without ipv6 support. I tried to handle them all properly. The only question that remains is the log message "Peer host is None!" from line 53 in src/class_outgoingSynSender.py.
I'm now in feature freeze mode for 0.6.2 so I can't promise this will make it into 0.6.2 because I need to test it and I don't know if I have time. Please follow the contribution guidelines: https://bitmessage.org/wiki/Contribute, you're missing a PGP signature that is associated with your github account. Without the signature, I'll have to resign it with mine and then I'll be the committer and you won't receive a tip.
Isn't this covered by errno.EAFNOSUPPORT?
Also, please tell me which linux distro has ipv6 disabled so I can test it.
In gentoo you can disable ipv6 by portage use-flag (USE="-ipv6").
Landscape.io complains here, it should be just a "," rather than "%".
This article https://docs.python.org/2/library/socket.html#socket.error says socket.error may return string instead of errno and i've seen it.
I don't think I'll have time to test it before 0.6.2 because I don't have a gentoo environment and no other VM without IPv6 support. Just hold on a week or two.
OK
I actually had to do some other fixes which may have fixed this one too (apart from the string). I haven't tested it on a IPv4-only linux, but I tested it on OpenBSD which cannot open a socket for both IPv4 and IPv6 and it worked fine, it fell back to IPv4-only. Can you retry?
Nothing changed for me. With your recent code pybitmessage still works, but if I run it in terminal I can see the following exceptions:
Thanks for the feedback, I'll look at it after 0.6.2 as I have no way to test your patch on a IPv4 only system at the moment.
One exception still exists. Another distro which can be configured without IPv6 support is openwrt.
Well it looks pretty straightforward.