<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_socket.py, branch 3.7</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=3.7</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_socket.py?h=3.7'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2021-05-07T19:36:32Z</updated>
<entry>
<title>[3.7] bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-25960)</title>
<updated>2021-05-07T19:36:32Z</updated>
<author>
<name>Zachary Ware</name>
<email>zach@python.org</email>
</author>
<published>2021-05-07T19:36:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1beae7e523d2db4e3ce383b2032095ef956f21c4'/>
<id>urn:sha1:1beae7e523d2db4e3ce383b2032095ef956f21c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Handle when IOCTL_VM_SOCKETS_GET_LOCAL_CID does not exist in "socket" (GH-19270)</title>
<updated>2020-04-01T01:09:57Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-04-01T01:09:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f2b83c782f9aceada1108f28cc027751751b7f2f'/>
<id>urn:sha1:f2b83c782f9aceada1108f28cc027751751b7f2f</id>
<content type='text'>
Running `test_socket` or anything that depends on it (like python -m
test.pythoninfo) crashes if IOCTL_VM_SOCKETS_GET_LOCAL_CID does not
exist in the socket module.

Automerge-Triggered-By: @pablogsal
(cherry picked from commit 6eb9619c88612565b424be14196a8adae6d51978)

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-36629: Add support.get_socket_conn_refused_errs() (GH-12834) (GH-12835)</title>
<updated>2019-04-15T10:49:37Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-04-15T10:49:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=28ed39e83e4c545fa1da89fd7691cace280296f7'/>
<id>urn:sha1:28ed39e83e4c545fa1da89fd7691cace280296f7</id>
<content type='text'>
Fix test_imap4_host_default_value() of test_imaplib: catch also
errno.ENETUNREACH error.
(cherry picked from commit 3c7931e514faf509a39c218c2c9f55efb434628f)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>bpo-36123: Fix test_socket.testWithTimeoutTriggeredSend() race condition (GH-12053)</title>
<updated>2019-02-26T16:48:52Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-02-26T16:48:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2632474957fa9c6311af21be6906d1234853f288'/>
<id>urn:sha1:2632474957fa9c6311af21be6906d1234853f288</id>
<content type='text'>
Use longer timeout for accept() in the server and block on accept in the client.
The client now only sets the timeout once the socket is connected.
(cherry picked from commit 53b9e1a1c1d86187ad6fbee492b697ef8be74205)

Co-authored-by: Joannah Nanjekye &lt;33177550+nanjekyejoannah@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>Make sure file object is close if socket.create_connection fails (GH-11334)</title>
<updated>2018-12-29T02:12:39Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-12-29T02:12:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0f756f7f564836d4f64e8f144e51f7f55346b919'/>
<id>urn:sha1:0f756f7f564836d4f64e8f144e51f7f55346b919</id>
<content type='text'>
The problem affects _testWithTimeoutTriggeredSend in test_socket.py.
(cherry picked from commit 1f511e1af060e98fb789319a96076c06e7f98135)

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<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>
</feed>
