summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22043: time.monotonic() is now always availableVictor Stinner2014-09-021-2/+2
| | | | | threading.Lock.acquire(), threading.RLock.acquire() and socket operations now use a monotonic clock, instead of the system clock, when a timeout is used.
* Issue #22218: Fix "comparison between signed and unsigned integers" warnings inVictor Stinner2014-08-171-5/+6
| | | | socketmodule.c.
* Issue #22127: fix typo.Martin v. Löwis2014-08-051-1/+1
|
* Issue #22127: Bypass IDNA for pure-ASCII host names (in particular for ↵Martin v. Löwis2014-08-051-10/+75
| | | | numeric IPs).
* (Merge 3.4) Fix repr(_socket.socket) on Windows 64-bit: don't fail withVictor Stinner2014-07-261-2/+9
|\ | | | | | | OverflowError on closed socket. repr(socket.socket) already works fine.
| * Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowErrorVictor Stinner2014-07-261-2/+9
| | | | | | | | on closed socket. repr(socket.socket) already works fine.
* | Issue #22042: Avoid dangerous C cast in socket.setblocking()Victor Stinner2014-07-231-2/+5
| | | | | | | | Avoid cast from (int*) to (u_long*), even if sizeof(int) == sizeof(u_long).
* | Fix typo in socket.getaddrinfo() docstring.Berker Peksag2014-06-301-4/+4
|\ \ | |/ | | | | Reported by Krishna Kumar Thakur on docs@.
| * Fix typo in socket.getaddrinfo() docstring.Berker Peksag2014-06-301-4/+4
| | | | | | | | Reported by Krishna Kumar Thakur on docs@.
* | All modern compilers provide a offsetof() functionVictor Stinner2014-06-031-4/+0
| | | | | | | | offsetof() is used directly in many other .c files without any issue.
* | Issue #21455: Add a default backlog to socket.listen().Charles-François Natali2014-05-221-10/+12
|/
* Issue #10141, Issue 20065: Changed #if to take CAN_RAW into account.Vinay Sajip2014-03-211-1/+1
|
* Issue #10141: updated new usages of AF_CAN to be in #ifdef AF_CAN rather ↵Vinay Sajip2014-03-201-3/+3
| | | | than #ifdef HAVE_LINUX_CAN_H to allow compilation on older Linuxes.
* Issue #20065: socketmodule: Fix build error when AF_CAN is defined without theCharles-François Natali2014-02-081-3/+3
|\ | | | | | | proper CAN headers.
| * Issue #20065: socketmodule: Fix build error when AF_CAN is defined without theCharles-François Natali2014-02-081-3/+3
| | | | | | | | proper CAN headers.
* | merge 3.3 (#20251)Benjamin Peterson2014-01-141-1/+0
|\ \ | |/
| * remove overly strict assertion (closes #20251)Benjamin Peterson2014-01-141-1/+0
| |
| * merge 3.2 (#20246)Benjamin Peterson2014-01-141-0/+5
| |\
| | * complain when nbytes > buflen to fix possible buffer overflow (closes #20246)Benjamin Peterson2014-01-141-0/+5
| | |
* | | merge 3.3 (#20246)Benjamin Peterson2014-01-141-0/+5
| | |
* | | Issue #12837: Silence a Clang compiler warning on OS X.Brett Cannon2014-01-071-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | Now makes CPython build without warnings on OS X under Clang with -Wno-unused-value -Wno-empty-body -Qunused-arguments -Wno-deprecated-declarations. Thanks to David Watson for taking an initial stab at a solution.
* | | Issue #16136: Remove VMS support and VMS-related codeChristian Heimes2013-12-211-98/+8
| | |
* | | Fix broken docstring continuation line for detach().Guido van Rossum2013-12-041-2/+2
| | |
* | | Close #19827: On UNIX, setblocking() and settimeout() methods of socket.socketVictor Stinner2013-12-031-8/+10
| | | | | | | | | | | | | | | can now avoid a second syscall if the ioctl() function can be used, or if the non-blocking flag of the socket is unchanged.
* | | add SO_PRIORITY (closes #19802)Benjamin Peterson2013-11-271-0/+3
| | | | | | | | | | | | Patch by Claudiu Popa.
* | | Fix sock_recvfrom_guts(): recvfrom() size is limited to an int on Windows, notVictor Stinner2013-11-151-8/+8
| | | | | | | | | | | | on other OSes!
* | | Issue #7171: Update syntax to replace MAX in favor of Py_MAX (matching ↵Jason R. Coombs2013-11-101-1/+5
| | | | | | | | | | | | implementation for Unix).
* | | Issue #7171: Add Windows implementation of ``inet_ntop`` and ``inet_pton`` ↵Atsuo Ishimoto2012-07-161-2/+106
| | | | | | | | | | | | to socket module.
* | | Re #18521: remove assignments of variables that are immediately reassigned.Georg Brandl2013-10-141-1/+1
| | |
* | | Issue #16201: socket: Use inet_pton()/inet_addr() instead of ad-hoc parsing forCharles-François Natali2013-09-131-17/+52
| | | | | | | | | | | | numeric IP addresses.
* | | Use INADDR_BROADCAST instead of hard-coded value (it's part of POSIX andCharles-François Natali2013-08-311-1/+1
| | | | | | | | | | | | already appears without #ifdef a couple lines above).
* | | Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-22/+189
| | | | | | | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* | | Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-4/+4
|\ \ \ | |/ / | | | | | | error messages and comments.
| * | Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-4/+4
| | | | | | | | | | | | error messages and comments.
* | | Issue #18549: Eliminate dead code in socket_ntohl().Christian Heimes2013-07-251-2/+0
|\ \ \ | |/ / | | | | | | CID 982369
| * | Issue #18549: Eliminate dead code in socket_ntohl().Christian Heimes2013-07-251-2/+0
| | | | | | | | | | | | CID 982369
* | | If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified.Victor Stinner2013-06-241-4/+4
| | |
* | | Issue #9566: recv(), recvfrom(), send(), sendall() and sendto() methodsVictor Stinner2013-06-241-5/+32
| | | | | | | | | | | | | | | | | | | | | of socket.socket objects now truncate the input buffer to INT_MAX bytes on Windows to avoid an integer overflow. (sendall() still send the whole buffer.)
* | | Issue #18259: Declare sethostname in socketmodule.c for AIXChristian Heimes2013-06-191-0/+5
|\ \ \ | |/ /
| * | Issue #18259: Declare sethostname in socketmodule.c for AIXChristian Heimes2013-06-191-0/+5
| | |
* | | (3.3->default) Ensure that the fix for #17269 also works on OSX 10.4Ronald Oussoren2013-06-101-1/+1
|\ \ \ | |/ / | | | | | | AI_NUMERICSERV isn't defined on OSX 10.4.
| * | Ensure that the fix for #17269 also works on OSX 10.4Ronald Oussoren2013-06-101-1/+1
| | | | | | | | | | | | AI_NUMERICSERV isn't defined on OSX 10.4.
* | | Reuse Py_MIN and Py_MAX macros: remove duplicate MIN/MAX macrosVictor Stinner2013-06-041-5/+2
| | | | | | | | | | | | multiprocessing.h: remove unused MIN and MAX macros
* | | (Merge 3.3) Close #18109: os.uname() now decodes fields from the localeVictor Stinner2013-06-031-8/+8
|\ \ \ | |/ / | | | | | | | | | encoding, and socket.gethostname() now decodes the hostname from the locale encoding, instead of using the UTF-8 encoding in strict mode.
| * | Close #18109: os.uname() now decodes fields from the locale encoding, andVictor Stinner2013-06-031-8/+8
| | | | | | | | | | | | | | | socket.gethostname() now decodes the hostname from the locale encoding, instead of using the UTF-8 encoding in strict mode.
* | | (3.3->default) Issue #17269: Workaround for a platform bug in getaddrinfo on OSXRonald Oussoren2013-05-241-0/+9
|\ \ \ | |/ / | | | | | | | | | Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations.
| * | Issue #17269: Workaround for a platform bug in getaddrinfo on OSXRonald Oussoren2013-05-241-0/+9
| | | | | | | | | | | | | | | Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations.
* | | Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX.Giampaolo Rodola'2013-05-211-0/+3
| | |
* | | Backed out changeset c0f2b038fc12Charles-François Natali2013-05-211-1/+1
| | |
* | | Issue #17683: socket module: return AF_UNIX addresses in Linux abstractCharles-François Natali2013-05-211-1/+1
| | | | | | | | | | | | namespace as string.