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

In mb/ the port in socket.getaddrinfo must not be 0 on #135

poeml opened this Issue Jun 5, 2015 · 0 comments


None yet
1 participant
Copy link

poeml commented Jun 5, 2015

                                                                                 [          ]

Issue migrated (2015-06-05) from old issue tracker

Title    In mb/ the port in socket.getaddrinfo must not be 0 on
 Priority   urgent              Status        resolved
Superseder                     Nosy List      dagobert, poeml
Assigned To poeml              Keywords

msg470 (view) Author: dagobert Date: 2014-01-23.17:31:06

In mb/ the resolution is done with

          for res in socket.getaddrinfo(s, 0):
              af, socktype, proto, canonname, sa = res

The 0 for the port leads to the exception

socket error msg: [Errno 9] service name not available for the specified socket


whereas None instead of 0 works. The error is only present when specifying a fqdn
and is not present when adding explicit ip numbers.

msg471 (view) Author: dagobert Date: 2014-01-23.17:34:30

The test was done on Solaris 10 Sparc with OpenCSW Python 2.7

msg472 (view) Author: poeml Date: 2014-01-23.21:40:36

Hm, None seems to be fine on Linux also

msg473 (view) Author: poeml Date: 2014-01-23.21:43:45

Fixed in trunk

Thanks, Dago!

         Date           User   Action              Args
2014-01-23 21:43:55 poeml    set    status: in-progress -> resolved
2014-01-23 21:43:45 poeml    set    messages: + msg473
                                      status: chatting -> in-progress
2014-01-23 21:40:37 poeml    set    assignedto: poeml
                                      messages: + msg472
                                      nosy: + poeml
2014-01-23 17:34:30 dagobert set    status: unread -> chatting
                                      messages: + msg471
2014-01-23 17:31:07 dagobert create

(end of migrated issue)

@poeml poeml added bug resolved labels Jun 5, 2015

@poeml poeml closed this Jun 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.