Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix _socket module compilation on Cygwin. (GH-4137) (GH-4145) | Miss Islington (bot) | 2018-02-26 | 1 | -1/+1 |
| | | | (cherry picked from commit 63ae04461fb0cc93ca57cd151103a8dd295581d6) | ||||
* | [3.6] bpo-32394: Remove some TCP options on older version Windows. (GH-5585) | animalize | 2018-02-26 | 1 | -0/+67 |
| | |||||
* | [3.6] bpo-32746: Fix multiple typos (GH-5144) (GH-5522) | Terry Jan Reedy | 2018-02-04 | 1 | -1/+1 |
| | | | | | | | | | 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) | ||||
* | [3.6] bpo-31927: Fix bugs in socketmodule.c on NetBSD and other issues. ↵ | Serhiy Storchaka | 2017-11-09 | 1 | -57/+57 |
| | | | | | | | | | (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) | ||||
* | [3.6] bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing ↵ | Miss Islington (bot) | 2017-10-18 | 1 | -3/+3 |
| | | | | | | | | | 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) | ||||
* | [3.6] bpo-31393: Fix the use of PyUnicode_READY(). (GH-3451). (#3453) | Serhiy Storchaka | 2017-09-08 | 1 | -1/+4 |
| | | | (cherry picked from commit e3b2b4b8d9e751b49e3550cb83ba39b54fdc377c) | ||||
* | bpo-30319: socket.close() now ignores ECONNRESET (#2565) (#2566) | Victor Stinner | 2017-07-04 | 1 | -1/+3 |
| | | | | | socket.close() was modified in Python 3.6 to raise OSError on failure: see bpo-26685. (cherry picked from commit 67e1478dba6efe60b8e1890192014b8b06dd6bd9) | ||||
* | Backport bpo-30205 to 3.6 (#1403) | Antoine Pitrou | 2017-05-02 | 1 | -3/+3 |
| | |||||
* | Add sockaddr_alg to sock_addr_t (GH-234) (GH-533) | Mariatta | 2017-03-17 | 1 | -30/+0 |
| | | | (cherry picked from commit d37c068e695f8ec72b5c1b5a5a5ece2337fda768) | ||||
* | Add TCP_CONGESTION and TCP_USER_TIMEOUT | Victor Stinner | 2016-11-29 | 1 | -0/+6 |
| | | | | | | | 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. | ||||
* | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize | Serhiy Storchaka | 2016-11-20 | 1 | -1/+1 |
| | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize. | ||||
* | Merge AIX fixes from 3.5 into 3.6 | Martin Panter | 2016-11-14 | 1 | -1/+3 |
|\ | |||||
| * | Issue #28000: Fix gethostbyname_r() usage on AIX with _LINUX_SOURCE_COMPAT | Martin Panter | 2016-11-14 | 1 | -1/+3 |
| | | | | | | | | Patch by Matthieu S. | ||||
* | | Issue #28480: Avoid label at end of compound statement --without-threads | Martin Panter | 2016-10-20 | 1 | -0/+1 |
| | | | | | | | | Based on patch by Masayuki Yamamoto. | ||||
* | | Issue #28471: Fix crash (GIL state related) in socket.setblocking | Yury Selivanov | 2016-10-18 | 1 | -9/+15 |
| | | |||||
* | | Issue #28139: Merge indentation fixes from 3.5 into 3.6 | Martin Panter | 2016-09-17 | 1 | -5/+6 |
|\ \ | |/ | |||||
| * | Issue #28139: Fix messed up indentation | Martin Panter | 2016-09-17 | 1 | -5/+6 |
| | | | | | | | | | | Also update the classmethod and staticmethod doc strings and comments to match the RST documentation. | ||||
| * | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Martin Panter | 2016-09-07 | 1 | -1/+1 |
| | | |||||
* | | Fix NULL check in sock_sendmsg_iovec. CID 1372885 | Christian Heimes | 2016-09-13 | 1 | -1/+1 |
| | | |||||
* | | socket: Fix memory leak in sendmsg() and sendmsg_afalg() | Victor Stinner | 2016-09-12 | 1 | -5/+12 |
| | | | | | | | | | | | | | | Issue #27744: * Release msg.msg_iov memory block. * Release memory on PyMem_Malloc(controllen) failure | ||||
* | | Cleanup socketmodule.c | Victor Stinner | 2016-09-12 | 1 | -13/+31 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | | Issue 18550: Check return value of ioctl() / fnctl() in internal_setblocking | Christian Heimes | 2016-09-08 | 1 | -20/+41 |
| | | | | | | | | | | | | | | The function internal_setblocking() of the socket module did not check the return values of ioctl() and fnctl(). CID 1294328 | ||||
* | | use the '__linux__' instead 'linux' preprocessor define | Benjamin Peterson | 2016-09-07 | 1 | -4/+4 |
| | | |||||
* | | Issue #27744: correct comment and markup | Christian Heimes | 2016-09-05 | 1 | -1/+1 |
| | | |||||
* | | Issue #27744: Add AF_ALG (Linux Kernel crypto) to socket module. | Christian Heimes | 2016-09-05 | 1 | -53/+378 |
| | | |||||
* | | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Raymond Hettinger | 2016-08-30 | 1 | -1/+1 |
| | | |||||
* | | #26907: add some missing getsockopt constants. | R David Murray | 2016-08-24 | 1 | -0/+12 |
| | | | | | | | | Patch by Christian Heimes, reviewed by Martin Panter. | ||||
* | | Issue #27702: Only expose SOCK_RAW when defined | Berker Peksag | 2016-08-08 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | | Merge 3.5 (INVALID_SOCKET) | Victor Stinner | 2016-07-22 | 1 | -6/+6 |
|\ \ | |/ | |||||
| * | socket: use INVALID_SOCKET | Victor Stinner | 2016-07-22 | 1 | -5/+6 |
| | | | | | | | | | | | | | | | | * 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 | ||||
* | | Merge 3.5 (fix internal_select) | Victor Stinner | 2016-07-22 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | socket: Fix internal_select() | Victor Stinner | 2016-07-22 | 1 | -1/+1 |
| | | | | | | | | | | Bug found by Pavel Belikov ("Fragment N1"): http://www.viva64.com/en/b/0414/#ID0ECDAE | ||||
* | | Remove duplicate AF_INET6 addition | Martin Panter | 2016-06-25 | 1 | -3/+0 |
| | | |||||
* | | Issue #26536: Use spaces instead of tabs | Berker Peksag | 2016-06-18 | 1 | -4/+4 |
| | | |||||
* | | Issue #26536: socket.ioctl now supports SIO_LOOPBACK_FAST_PATH. Patch by ↵ | Steve Dower | 2016-06-17 | 1 | -3/+23 |
| | | | | | | | | Daniel Stokes. | ||||
* | | - Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants | doko@ubuntu.com | 2016-06-13 | 1 | -0/+2 |
| | | | | | | | | | | exposed on the API which are not implemented on GNU/Hurd. They would not work at runtime anyway. | ||||
* | | Issue #26857: The gethostbyaddr_r() workaround is no longer needed with | Stefan Krah | 2016-05-22 | 1 | -1/+5 |
| | | | | | | | | api-level >= 23. Patch by Xavier de Gaye. | ||||
* | | Issue #26857: Workaround for missing symbol "gethostbyaddr_r" on Android. | Stefan Krah | 2016-04-26 | 1 | -1/+1 |
| | | |||||
* | | Issue #26057: Got rid of nonneeded use of PyUnicode_FromObject(). | Serhiy Storchaka | 2016-04-13 | 1 | -24/+20 |
| | | |||||
* | | Issue #26685: Raise OSError if closing a socket fails | Martin Panter | 2016-04-11 | 1 | -1/+5 |
| | | |||||
* | | socketmodule.c: error if option larger than INT_MAX | Victor Stinner | 2016-03-23 | 1 | -3/+16 |
| | | | | | | | | | | On Windows, socket.setsockopt() raises an OverflowError if the socket option is larger than INT_MAX bytes. | ||||
* | | Add socket finalizer | Victor Stinner | 2016-03-21 | 1 | -18/+53 |
| | | | | | | | | | | | | | | 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). | ||||
* | | ResourceWarning: Revert change on socket and scandir | Victor Stinner | 2016-03-19 | 1 | -1/+2 |
| | | | | | | | | io.FileIO has a safe implementation of destructor, but not socket nor scandir. | ||||
* | | On ResourceWarning, log traceback where the object was allocated | Victor Stinner | 2016-03-19 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Issue #26406: merge from 3.5 | Ned Deily | 2016-02-23 | 1 | -4/+10 |
|\ \ | |/ | |||||
| * | Issue #26406: Avoid unnecessary serialization of getaddrinfo(3) calls on | Ned Deily | 2016-02-23 | 1 | -4/+10 |
| | | | | | | | | current versions of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis. | ||||
* | | Issue #25924: merge with 3.5 | Ned Deily | 2016-02-15 | 1 | -2/+18 |
|\ \ | |/ | |||||
| * | Issue #25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X | Ned Deily | 2016-02-15 | 1 | -2/+18 |
| | | | | | | | | versions 10.5 or higher. Original patch by A. Jesse Jiryu Davis. | ||||
* | | Merge 3.5: Issue #26227 | Victor Stinner | 2016-01-28 | 1 | -2/+24 |
|\ \ | |/ | |||||
| * | Windows: Decode hostname from ANSI code page | Victor Stinner | 2016-01-28 | 1 | -2/+24 |
| | | | | | | | | | | | | Issue #26227: On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex() functions of the socket module now decode the hostname from the ANSI code page rather than UTF-8. |