<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/socketmodule.c, branch 3.8</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.8</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/socketmodule.c?h=3.8'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2024-01-17T13:44:07Z</updated>
<entry>
<title>[3.8] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH-113474)</title>
<updated>2024-01-17T13:44:07Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2024-01-17T13:44:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2e1156c562ad09f83596dc234e7ca9e8f938bf93'/>
<id>urn:sha1:2e1156c562ad09f83596dc234e7ca9e8f938bf93</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>bpo-26227: Fixes decoding of host names on Windows from ANSI instead of UTF-8 (GH-25510)</title>
<updated>2021-04-21T23:36:36Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-04-21T23:36:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f7bc44170b4bdd16c46b4b6acf7673ffc24dfb19'/>
<id>urn:sha1:f7bc44170b4bdd16c46b4b6acf7673ffc24dfb19</id>
<content type='text'>
(cherry picked from commit dc516ef8395d15da0ab225eb0dceb2e0581f51ca)

Co-authored-by: Steve Dower &lt;steve.dower@python.org&gt;</content>
</entry>
<entry>
<title>bpo-42620: Improve socket.getsockname doc string (GH-23742)</title>
<updated>2020-12-23T07:44:00Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-12-23T07:44:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b20494618c6ac6ebcd354e0b16a6645fe47acbee'/>
<id>urn:sha1:b20494618c6ac6ebcd354e0b16a6645fe47acbee</id>
<content type='text'>
Signed-off-by: Christian Heimes &lt;christian@python.org&gt;
(cherry picked from commit cf3565ca9a7ed0f7decd000e41fa3de400986e4d)

Co-authored-by: Christian Heimes &lt;christian@python.org&gt;</content>
</entry>
<entry>
<title>bpo-40121: Fixes audit event raised on creating a new socket (GH-19238)</title>
<updated>2020-03-31T11:57:06Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-03-31T11:57:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6a0ee60db4cee4a01bae1a2922d21a859e9ea2ed'/>
<id>urn:sha1:6a0ee60db4cee4a01bae1a2922d21a859e9ea2ed</id>
<content type='text'>
(cherry picked from commit 63ba5cccf484b9ec23dfbf4cf7ffdc833eda98c3)

Co-authored-by: Steve Dower &lt;steve.dower@python.org&gt;</content>
</entry>
<entry>
<title>closes bpo-37405: Make socket.getsockname() always return a tuple for AF_CAN. (GH-14392) (GH-16018)</title>
<updated>2019-09-12T10:34:28Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-09-12T10:34:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f60fd95dcc189ace8c0a2177a394b9cc20389a1e'/>
<id>urn:sha1:f60fd95dcc189ace8c0a2177a394b9cc20389a1e</id>
<content type='text'>
This fixes a regression from 3.5. In recent releases, `getsockname()` in the AF_CAN case has returned a string.
(cherry picked from commit 954900a3f98a8c0dea14dd575490237f3f8626b3)

Co-authored-by: bggardner &lt;brent@ebrent.net&gt;</content>
</entry>
<entry>
<title>bpo-37811: FreeBSD, OSX: fix poll(2) usage in sockets module (GH-15202)</title>
<updated>2019-08-14T21:47:43Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-08-14T21:47:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=123f6c4914827c4ced65d032fab74de62db31cd6'/>
<id>urn:sha1:123f6c4914827c4ced65d032fab74de62db31cd6</id>
<content type='text'>
FreeBSD implementation of poll(2) restricts the timeout argument to be
either zero, or positive, or equal to INFTIM (-1).

Unless otherwise overridden, socket timeout defaults to -1. This value
is then converted to milliseconds (-1000) and used as argument to the
poll syscall. poll returns EINVAL (22), and the connection fails.

This bug was discovered during the EINTR handling testing, and the
reproduction code can be found in
https://bugs.python.org/issue23618 (see connect_eintr.py,
attached). On GNU/Linux, the example runs as expected.

This change is trivial:
If the supplied timeout value is negative, truncate it to -1.
(cherry picked from commit 28146206578ebe1b84b48e6f255738a227058c04)

Co-authored-by: Artem Khramov &lt;akhramov@pm.me&gt;</content>
</entry>
<entry>
<title>bpo-37085: Expose SocketCAN bcm_msg_head flags (GH-13646)</title>
<updated>2019-07-31T09:10:38Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-07-31T09:10:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d8b914a30b0849476345a19ce0a0ab1ade171b19'/>
<id>urn:sha1:d8b914a30b0849476345a19ce0a0ab1ade171b19</id>
<content type='text'>
Expose the CAN_BCM SocketCAN constants used in the bcm_msg_head struct
flags (provided by &lt;linux/can/bcm.h&gt;) under the socket library.

This adds the following constants with a CAN_BCM prefix:

  * SETTIMER
  * STARTTIMER
  * TX_COUNTEVT
  * TX_ANNOUNCE
  * TX_CP_CAN_ID
  * RX_FILTER_ID
  * RX_CHECK_DLC
  * RX_NO_AUTOTIMER
  * RX_ANNOUNCE_RESUME
  * TX_RESET_MULTI_IDX
  * RX_RTR_FRAME
  * CAN_FD_FRAME

The CAN_FD_FRAME flag was introduced in the 4.8 kernel, while the other
ones were present since SocketCAN drivers were mainlined in 2.6.25. As
such, it is probably unnecessary to guard against these constants being
missing.
(cherry picked from commit 31c4fd2a10d90beaa37d630e5f74a471e14e089d)

Co-authored-by: karl ding &lt;karlding@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-36974: tp_print -&gt; tp_vectorcall_offset and tp_reserved -&gt; tp_as_async (GH-13464)</title>
<updated>2019-05-31T02:13:39Z</updated>
<author>
<name>Jeroen Demeyer</name>
<email>J.Demeyer@UGent.be</email>
</author>
<published>2019-05-31T02:13:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=530f506ac91338b55cf2be71b1cdf50cb077512f'/>
<id>urn:sha1:530f506ac91338b55cf2be71b1cdf50cb077512f</id>
<content type='text'>
Automatically replace
tp_print -&gt; tp_vectorcall_offset
tp_compare -&gt; tp_as_async
tp_reserved -&gt; tp_as_async
</content>
</entry>
<entry>
<title>bpo-37007: Implement socket.if_nametoindex(), if_indextoname() and if_nameindex() on Windows (GH-13522)</title>
<updated>2019-05-29T21:02:37Z</updated>
<author>
<name>Zackery Spytz</name>
<email>zspytz@gmail.com</email>
</author>
<published>2019-05-29T21:02:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8f96c9f8ed2a4795e34b333411451e24f28f74d2'/>
<id>urn:sha1:8f96c9f8ed2a4795e34b333411451e24f28f74d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-32388: Remove cross-version binary compatibility requirement in tp_flags (GH-4944)</title>
<updated>2019-05-29T20:12:38Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>antoine@python.org</email>
</author>
<published>2019-05-29T20:12:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ada319bb6d0ebcc68d3e0ef2b4279ea061877ac8'/>
<id>urn:sha1:ada319bb6d0ebcc68d3e0ef2b4279ea061877ac8</id>
<content type='text'>
It is now allowed to add new fields at the end of the PyTypeObject struct without having to allocate a dedicated compatibility flag in tp_flags.

This will reduce the risk of running out of bits in the 32-bit tp_flags value.
</content>
</entry>
</feed>
