+1 maintenance report part 1

Seth Arnold seth.arnold at canonical.com
Tue May 18 23:36:53 UTC 2021


On Tue, May 18, 2021 at 04:35:56PM +1200, Michael Hudson-Doyle wrote:
> no_proxy but maybe we should do this always? I also don't understand how
> this works on other architectures -- if you do (python) s=socket.socket();
> s.bind(('0.0.0.0', 0)); print(s.getsockname()[0]) will you ever get an
> answer other than 0.0.0.0?

If this is the exact sequence, then I'm not sure. It seems unlikely.

However, if the actual sequence is a bit more involved, then yes, you can
get other results:

>>> import socket
>>> s=socket.socket()
>>> s.bind(('0.0.0.0', 0)); print(s.getsockname()[0])
0.0.0.0
>>> s.connect(('127.0.0.53', 53))
>>> print(s.getsockname()[0])
127.0.0.1
>>>

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20210518/9c904642/attachment.sig>


More information about the ubuntu-devel mailing list