| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
(GH-11077) (GH-11106)
(cherry picked from commit 8905fcc85a6fc3ac394bc89b0bbf40897e9497a6)
|
| |
|
|
|
|
|
|
|
| |
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 <christian@python.org>
(cherry picked from commit 2eb6ad8578fa9d764c21a92acd8e054e3202ad19)
|
| |
|
|
|
|
| |
"single" needs to be decrefed if PyList_Append() fails.
(cherry picked from commit 4c596d54aa6a55e9d2a3db78891e656ebbfb63c8)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 731ff68eeef58babdf2b32dc9a73b141760c2be9)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
|
| |
|
|
|
| |
`socketmodule.c` on Windows (GH-5120)
(cherry picked from commit af11a15c586e980a157c04ee60b6e33dc7228f3f)
|
| |
|
| |
(cherry picked from commit 63ae04461fb0cc93ca57cd151103a8dd295581d6)
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Fix typos found by codespell in docs, docstrings, and comments.
Fixes for the following files were in post-3.6 code and not backported:
Lib/ctypes/_aix.py (new), Lib/test/test_concurrent_futures.py,
Modules/_asynciomodule.c, Modules/_pickle.c, Objects/obmalloc.c.
(cherry picked from commit c3d9508ff22ece9a96892b628dd5813e2fb0cd80)
|
| |
|
|
|
|
|
|
|
| |
(GH-4235) (#4352)
* Fix compilation of the socket module on NetBSD 8.
* Fix the assertion failure or reading arbitrary data when parse
a AF_BLUETOOTH address on NetBSD and DragonFly BSD.
* Fix other potential errors and make the code more reliable.
(cherry picked from commit d3187158c09cf899e9849f335bdff10594209167)
|
| |
|
|
|
|
|
|
|
| |
in more functions (GH-4026) (#4032)
Fix timeout rounding in time.sleep(), threading.Lock.acquire() and
socket.socket.settimeout() to round correctly negative timeouts between -1.0 and
0.0. The functions now block waiting for events as expected. Previously, the
call was incorrectly non-blocking.
(cherry picked from commit 59af94fa61bf90adbe624508e909b5d6ef6e8464)
|
| |
|
| |
(cherry picked from commit e3b2b4b8d9e751b49e3550cb83ba39b54fdc377c)
|
| |
|
|
|
| |
socket.close() was modified in Python 3.6 to raise OSError on
failure: see bpo-26685.
(cherry picked from commit 67e1478dba6efe60b8e1890192014b8b06dd6bd9)
|
| | |
|
| |
|
| |
(cherry picked from commit d37c068e695f8ec72b5c1b5a5a5ece2337fda768)
|
| |
|
|
|
|
|
| |
Issue #26273: Add new socket.TCP_CONGESTION (Linux 2.6.13) and
socket.TCP_USER_TIMEOUT (Linux 2.6.37) constants.
Patch written by Omar Sandoval.
|
| |
|
|
| |
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
|
| |\ |
|
| | |
| |
| |
| | |
Patch by Matthieu S.
|
| | |
| |
| |
| | |
Based on patch by Masayuki Yamamoto.
|
| | | |
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| | |
Also update the classmethod and staticmethod doc strings and comments to
match the RST documentation.
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
Issue #27744:
* Release msg.msg_iov memory block.
* Release memory on PyMem_Malloc(controllen) failure
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Issue #27744:
* PEP 7: add {...} around if blocks
* assign variables and then check their value in if() to make the code easier
to read and to debug.
|
| | |
| |
| |
| |
| |
| |
| | |
The function internal_setblocking() of the socket module did not check
the return values of ioctl() and fnctl().
CID 1294328
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
Patch by Christian Heimes, reviewed by Martin Panter.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
SOCK_RAW is marked as optional in the POSIX specification:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html
Patch by Ed Schouten.
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
* Replace "fd = -1" with "fd = INVALID_SOCKET"
* Replace "fd < 0" with "fd == INVALID_SOCKET": SOCKET_T is unsigned on Windows
Bug found by Pavel Belikov ("Fragment N1"):
http://www.viva64.com/en/b/0414/#ID0ECDAE
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| | |
Bug found by Pavel Belikov ("Fragment N1"):
http://www.viva64.com/en/b/0414/#ID0ECDAE
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
Daniel Stokes.
|
| | |
| |
| |
| |
| | |
exposed on the API which are not implemented on GNU/Hurd. They would not
work at runtime anyway.
|
| | |
| |
| |
| | |
api-level >= 23. Patch by Xavier de Gaye.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
On Windows, socket.setsockopt() raises an OverflowError if the socket option is
larger than INT_MAX bytes.
|
| | |
| |
| |
| |
| |
| |
| | |
Issue #26590: Implement a safe finalizer for the _socket.socket type. It now
releases the GIL to close the socket. Use PyErr_ResourceWarning() to raise the
ResourceWarning to pass the socket object to the warning logger, to get the
traceback where the socket was created (allocated).
|
| | |
| |
| |
| | |
io.FileIO has a safe implementation of destructor, but not socket nor scandir.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Issue #26567:
* Add a new function PyErr_ResourceWarning() function to pass the destroyed
object
* Add a source attribute to warnings.WarningMessage
* Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where
source object was allocated.
|
| |\ \
| |/ |
|