<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/socketmodule.c, branch 3.10</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/socketmodule.c?h=3.10</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/socketmodule.c?h=3.10'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2024-01-17T13:49:40Z</updated>
<entry>
<title>[3.10] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH-112599)</title>
<updated>2024-01-17T13:49:40Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2024-01-17T13:49:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=32e7acdc05a3adb9a32c65242c63eb456696dfb6'/>
<id>urn:sha1:32e7acdc05a3adb9a32c65242c63eb456696dfb6</id>
<content type='text'>
* Fix a crash when pass UINT_MAX.
* Fix an integer overflow on 64-bit non-Windows platforms.
(cherry picked from commit 0daf555c6fb3feba77989382135a58215e1d70a5)

Co-authored-by: Zackery Spytz &lt;zspytz@gmail.com&gt;</content>
</entry>
<entry>
<title>gh-100795: Don't call freeaddrinfo on failure. (GH-101252)</title>
<updated>2023-01-23T23:27:41Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-01-23T23:27:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=81266281073f498349d6e98563a6519e2b94a1c4'/>
<id>urn:sha1:81266281073f498349d6e98563a6519e2b94a1c4</id>
<content type='text'>
When getaddrinfo returns an error, the output pointer is in an unknown state
Don't call freeaddrinfo on it.  See the issue for discussion and details with
links to reasoning.  _Most_ libc getaddrinfo implementations never modify the
output pointer unless they are returning success.

(cherry picked from commit b724ac2fe7fbb5a7a33d639cad8e748f17b325e0)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;
Co-authored-by: Sergey G. Brester &lt;github@sebres.de&gt;
Co-authored-by: Oleg Iarygin &lt;dralife@yandex.ru&gt;</content>
</entry>
<entry>
<title>gh-94821: Fix autobind of empty unix domain address (GH-94826)</title>
<updated>2022-07-17T15:39:30Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-07-17T15:39:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5d75edd925f4e0624bd341b7c3ec8c61f0deec23'/>
<id>urn:sha1:5d75edd925f4e0624bd341b7c3ec8c61f0deec23</id>
<content type='text'>
When binding a unix socket to an empty address on Linux, the socket is
automatically bound to an available address in the abstract namespace.

    &gt;&gt;&gt; s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
    &gt;&gt;&gt; s.bind("")
    &gt;&gt;&gt; s.getsockname()
    b'\x0075499'

Since python 3.9, the socket is bound to the one address:

    &gt;&gt;&gt; s.getsockname()
    b'\x00'

And trying to bind multiple sockets will fail with:

    Traceback (most recent call last):
      File "/home/nsoffer/src/cpython/Lib/test/test_socket.py", line 5553, in testAutobind
        s2.bind("")
    OSError: [Errno 98] Address already in use

Added 2 tests:
- Auto binding empty address on Linux
- Failing to bind an empty address on other platforms

Fixes f6b3a07b7df6 (bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866)
(cherry picked from commit c22f134211743cd5ad14cec1dd4f527bee542b4c)

Co-authored-by: Nir Soffer &lt;nsoffer@redhat.com&gt;</content>
</entry>
<entry>
<title>gh-84461: Silence some compiler warnings on WASM (GH-93978) (#94025)</title>
<updated>2022-06-20T14:09:55Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-06-20T14:09:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9d73adf7a45035f9c3bd6771347aad912e15c373'/>
<id>urn:sha1:9d73adf7a45035f9c3bd6771347aad912e15c373</id>
<content type='text'>
(cherry picked from commit 774ef28814d0d9d57ec813cb31b0a7af6c476127)

Co-authored-by: Christian Heimes &lt;christian@python.org&gt;</content>
</entry>
<entry>
<title>[3.10] bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866) (GH-32140)</title>
<updated>2022-03-28T18:26:49Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-03-28T18:26:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5944807b09717d43bb017f700e8c451dd07199ed'/>
<id>urn:sha1:5944807b09717d43bb017f700e8c451dd07199ed</id>
<content type='text'>
Add missing terminated NUL in sockaddr_un's length

- Linux: https://man7.org/linux/man-pages/man7/unix.7.html
- *BSD: SUN_LEN
(cherry picked from commit f6b3a07b7df60dc04d0260169ffef6e9796a2124)


Co-authored-by: ty &lt;zonyitoo@users.noreply.github.com&gt;

Automerge-Triggered-By: GH:gpshead</content>
</entry>
<entry>
<title>[3.10] Fix typos in the Modules directory (GH-28761) (GH-28781)</title>
<updated>2021-10-07T08:55:18Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-10-07T08:55:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5afc5bb45d614ea4a512e257b6b60e4f98185043'/>
<id>urn:sha1:5afc5bb45d614ea4a512e257b6b60e4f98185043</id>
<content type='text'>
(cherry picked from commit dd02a696e55b450413e765e698e653d781ca4205)


Co-authored-by: Christian Clauss &lt;cclauss@me.com&gt;

Automerge-Triggered-By: GH:gpshead</content>
</entry>
<entry>
<title>bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404)</title>
<updated>2021-09-17T09:09:29Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-09-17T09:09:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=62c74f34e7541cf5c9780661b260c53617291804'/>
<id>urn:sha1:62c74f34e7541cf5c9780661b260c53617291804</id>
<content type='text'>
(cherry picked from commit 773319545ba60577bc140aa46eac83b360240b7a)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>Remove documentation for non-existing socket class attributes (GH-28029)</title>
<updated>2021-09-07T18:46:34Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-09-07T18:46:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a272ffef33d956a1d5bcb4712f95490330a5c5d7'/>
<id>urn:sha1:a272ffef33d956a1d5bcb4712f95490330a5c5d7</id>
<content type='text'>
The functions in question are available on the module-level only.
(cherry picked from commit 34d82ce7cb82a8f5e2e83417d66d9aa319f3bb69)

Co-authored-by: Matti Picus &lt;matti.picus@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) (GH-27380)</title>
<updated>2021-07-26T22:34:32Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-07-26T22:34:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6fc1efa4546ad94a904239fd5efb84e02894eb31'/>
<id>urn:sha1:6fc1efa4546ad94a904239fd5efb84e02894eb31</id>
<content type='text'>
Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;
(cherry picked from commit 11749e2dc20ad6a76e9a39e948853e89b2b4bbed)

Co-authored-by: Mariusz Felisiak &lt;felisiak.mariusz@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079)</title>
<updated>2021-07-14T23:15:31Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-07-14T23:15:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ff7af2203c1f03d9300e93e3e06a47fb78cc2bef'/>
<id>urn:sha1:ff7af2203c1f03d9300e93e3e06a47fb78cc2bef</id>
<content type='text'>
(cherry picked from commit d59d7374a364c4e5c2b9a83d8e4543ee494285b8)

Co-authored-by: Shane Harvey &lt;shnhrv@gmail.com&gt;</content>
</entry>
</feed>
