<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_socket.py, branch v3.7.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_socket.py?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_socket.py?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-12-10T11:13:01Z</updated>
<entry>
<title>bpo-35050: AF_ALG length check off-by-one error (GH-10058) (GH-11069)</title>
<updated>2018-12-10T11:13:01Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-12-10T11:13:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1a7b62d5571b3742e706d247dfe6509f68f1409d'/>
<id>urn:sha1:1a7b62d5571b3742e706d247dfe6509f68f1409d</id>
<content type='text'>
The length check for AF_ALG salg_name and salg_type had a off-by-one
error. The code assumed that both values are not necessarily NULL
terminated. However the Kernel code for alg_bind() ensures that the last
byte of both strings are NULL terminated.

Signed-off-by: Christian Heimes &lt;christian@python.org&gt;
(cherry picked from commit 2eb6ad8578fa9d764c21a92acd8e054e3202ad19)</content>
</entry>
<entry>
<title>bpo-35347: Fix test_socket.NonBlockingTCPTests (GH-10791)</title>
<updated>2018-11-30T11:48:17Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-11-30T11:48:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=365f21c2d3756a6768c5b0d479aaf5c2a568b80b'/>
<id>urn:sha1:365f21c2d3756a6768c5b0d479aaf5c2a568b80b</id>
<content type='text'>
testAccept() and testRecv() of test_socket.NonBlockingTCPTests have a
race condition: time.sleep() is used as a weak synchronization
primitive and the tests fail randomly on slow buildbots.

Use a reliable threading.Event to fix these tests.

Other changes:

* Replace send() with sendall()
* Expect specific BlockingIOError rather than generic OSError
* Add a timeout to select() in testAccept() and testRecv()
* Use addCleanup() to close sockets
* Use assertRaises()
(cherry picked from commit ebd5d6d6e6e4e751ba9c7534004aadfc27ba9265)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>Fix tests in test_socket to use correctly CMSG_LEN (GH-9594)</title>
<updated>2018-09-27T13:30:47Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-09-27T13:30:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=addef07ca7d7b6971d59c062c3229e91a99e5f5e'/>
<id>urn:sha1:addef07ca7d7b6971d59c062c3229e91a99e5f5e</id>
<content type='text'>
After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots
regarding tests in test_socket that are using
testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed
out to be the reason the test started to fail.

A close examination of the manpage for cmsg_space(3) reveals that
the number of file descriptors needs to be taken into account when
using CMSG_LEN().

This commit fixes tests in test_socket to use correctly CMSG_LEN, taking
into account the number of FDs.
(cherry picked from commit 7291108d88ea31d205da4db19d202d6cbffc6d93)

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-33937: Catch ENOMEM error in test_socket (GH-9557)</title>
<updated>2018-09-25T15:49:28Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-09-25T15:49:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ef1173ab141ba5387598f8859ba96f98d20d743e'/>
<id>urn:sha1:ef1173ab141ba5387598f8859ba96f98d20d743e</id>
<content type='text'>
Fix test_socket.SendmsgSCTPStreamTest: catch ENOMEM error.
testSendmsgTimeout() and testSendmsgDontWait() randomly fail on
Travis CI with: "OSError: [Errno 12] Cannot allocate memory".
(cherry picked from commit 46f40be8b907854deb81c6132b7cb038e9e5202a)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>bpo-34587, test_socket: remove RDSTest.testCongestion() (GH-9277)</title>
<updated>2018-09-17T21:27:59Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-09-17T21:27:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b7f58d7f80f80f0e20cad84773f158a379a19280'/>
<id>urn:sha1:b7f58d7f80f80f0e20cad84773f158a379a19280</id>
<content type='text'>
The test tries to fill the receiver's socket buffer and expects an
error. But the RDS protocol doesn't require that. Moreover, the Linux
implementation of RDS expects that the producer of the messages
reduces its rate, it's not the role of the receiver to trigger an
error.

The test fails on Fedora 28 by design, so remove it.
(cherry picked from commit 7484bdfd1e2e33fdd2c44dd4ffa044aacd495337)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)</title>
<updated>2018-07-09T15:47:14Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-07-09T15:47:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=958a25ea9fdf3e47f3f0829073dc77c0869488dd'/>
<id>urn:sha1:958a25ea9fdf3e47f3f0829073dc77c0869488dd</id>
<content type='text'>
Fixed also testing the "always" warning filter.
(cherry picked from commit b796e7dcdc24ff7ec53044af041254c83a8ace21)

Co-authored-by: Sergey Fedoseev &lt;fedoseev.sergey@gmail.com&gt;</content>
</entry>
<entry>
<title>Provide a little better debug output (GH-6940) (#6942)</title>
<updated>2018-05-17T16:53:24Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-05-17T16:53:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=56882db4f7e7ee14ed37d5234c8a06a5a50a7593'/>
<id>urn:sha1:56882db4f7e7ee14ed37d5234c8a06a5a50a7593</id>
<content type='text'>
(cherry picked from commit 273f51f5ca9dd0420d327c95281b24078f8feeef)

Co-authored-by: Barry Warsaw &lt;barry@python.org&gt;</content>
</entry>
<entry>
<title>Spelling fixes to docs, docstrings, and comments (GH-6374)</title>
<updated>2018-04-20T21:00:41Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-04-20T21:00:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=32955299b4b102138220150e2925de4ce7f17c82'/>
<id>urn:sha1:32955299b4b102138220150e2925de4ce7f17c82</id>
<content type='text'>
(cherry picked from commit 61f82e0e337f971da57f8f513abfe693edf95aa5)

Co-authored-by: Ville Skyttä &lt;ville.skytta@iki.fi&gt;</content>
</entry>
<entry>
<title>bpo-32394: Remove some TCP options on old version Windows. (GH-5523)</title>
<updated>2018-02-26T18:36:17Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-02-26T18:36:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=53d3f8a89971bac3d2f454ff9f923066ecc3a6d9'/>
<id>urn:sha1:53d3f8a89971bac3d2f454ff9f923066ecc3a6d9</id>
<content type='text'>
(cherry picked from commit 19e7d48ce89422091f9af93038b9fee075d46e9e)

Co-authored-by: animalize &lt;animalize@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-32221: makeipaddr(): remove interface part + speedup (GH-5449) (GH-5449) (#5641)</title>
<updated>2018-02-12T20:12:24Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-02-12T20:12:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0442599961f966a3dc7f3fe6a3c0d5765fcf2082'/>
<id>urn:sha1:0442599961f966a3dc7f3fe6a3c0d5765fcf2082</id>
<content type='text'>
(cherry picked from commit 7766b96ab80b04509bbac708ee5ecf3c1c5934fc)

Co-authored-by: Коренберг Марк &lt;socketpair@gmail.com&gt;</content>
</entry>
</feed>
