summaryrefslogtreecommitdiff
path: root/Modules/socketmodule.c
AgeCommit message (Collapse)AuthorLines
2012-01-02Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch byCharles-François Natali-8/+21
Vilmos Nebehaj.
2011-08-28Issue #12287: Fix a stack corruption in ossaudiodev module when the FD isCharles-François Natali-8/+4
greater than FD_SETSIZE.
2011-08-14#12725: fix working. Patch by Ben Hayden.Ezio Melotti-3/+3
2011-05-10Issue #8498: In socket.accept(), allow to specify 0 as a backlog value inAntoine Pitrou-4/+7
order to accept exactly one connection. Patch by Daniel Evers.
2011-05-07#10169: Fix argument parsing in socket.sendto() to avoid error masking.Ezio Melotti-5/+15
2011-03-16#11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti-8/+8
2010-10-27Merged revisions 85868 via svnmerge fromAntoine Pitrou-12/+28
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85868 | antoine.pitrou | 2010-10-27 22:13:57 +0200 (mer., 27 oct. 2010) | 3 lines Issue #8852: Allow the socket module to build on OpenSolaris. ........
2010-10-17Merged revisions 85586-85587,85596-85598 via svnmerge fromGregory P. Smith-2/+25
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85586 | gregory.p.smith | 2010-10-16 17:17:24 -0700 (Sat, 16 Oct 2010) | 2 lines fix for netbsd. ........ r85587 | gregory.p.smith | 2010-10-16 17:43:10 -0700 (Sat, 16 Oct 2010) | 3 lines applying netbsd-wizs-mod.patch from issue5510 - fixes for netbsd (and dragonflybsd?) ........ r85596 | gregory.p.smith | 2010-10-16 19:14:36 -0700 (Sat, 16 Oct 2010) | 6 lines Fix multiprocessing Semaphore's on netbsd5. SEM_VALUE_MAX is defined as (~0U) on NetBSD which was causing it to appear as -1 when used as a signed int for _multprocessing.SemLock.SEM_VALUE_MAX. This works around the problem by substituting INT_MAX on systems where it appears negative when used as an int. ........ r85597 | gregory.p.smith | 2010-10-16 19:57:19 -0700 (Sat, 16 Oct 2010) | 2 lines skip test_itimer_virtual on NetBSD to prevent the test suite from hanging. ........ r85598 | gregory.p.smith | 2010-10-16 20:09:12 -0700 (Sat, 16 Oct 2010) | 2 lines Avoid hanging the test on netbsd5. ........
2010-10-13Merged revisions 85404 via svnmerge fromGregory P. Smith-1/+1
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85404 | gregory.p.smith | 2010-10-12 20:39:47 -0700 (Tue, 12 Oct 2010) | 2 lines fix compliation on NetBSD ........
2010-09-27Merged revisions 85032 via svnmerge fromAntoine Pitrou-23/+25
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85032 | antoine.pitrou | 2010-09-27 19:52:25 +0200 (lun., 27 sept. 2010) | 6 lines Issue #9950: Fix socket.sendall() crash or misbehaviour when a signal is received. Now sendall() properly calls signal handlers if necessary, and retries sending if these returned successfully, including on sockets with a timeout. ........
2010-05-09Untabify C files. Will watch buildbots.Antoine Pitrou-2961/+2961
2010-05-04Remove an unneeded variable assignment.Brett Cannon-1/+0
Found using Clang's static analyzer.
2010-04-29Issue #7834: Fix connect() of Bluetooth L2CAP sockets with recent versionsAntoine Pitrou-0/+1
of the Linux kernel. Patch by Yaniv Aknin.
2010-04-02Issue #8235: _socket: Add the constant ``SO_SETFIB``. SO_SETFIB isLarry Hastings-0/+3
a socket option available on FreeBSD 7.1 and newer.
2010-03-25Backported PyCapsule from 3.1, and converted most uses ofLarry Hastings-1/+1
CObject to PyCapsule.
2010-03-17Issue #8104: socket.recv_into() and socket.recvfrom_into() now supportAntoine Pitrou-17/+29
writing into objects supporting the new buffer API, for example bytearrays or memoryviews.
2010-02-04Issue #4772: Raise a ValueError when an unknown Bluetooth protocol isAntoine Pitrou-1/+5
specified, rather than fall through to AF_PACKET (in the `socket` module). Also, raise ValueError rather than TypeError when an unknown TIPC address type is specified. Patch by Brian Curtin.
2009-09-25http://bugs.python.org/issue6971Kristján Valur Jónsson-15/+39
Adding the SIO_KEEPALIVE_VALS command to socket.ioctl on windows
2009-09-19#6944: the argument to PyArg_ParseTuple should be a tuple, otherwise a ↵Georg Brandl-5/+8
SystemError is set. Also clean up another usage of PyArg_ParseTuple.
2009-08-13Fix issue1628205: Socket file objects returned by socket.socket.makefile() nowGregory P. Smith-1/+14
properly handles EINTR within the read, readline, write & flush methods. The socket.sendall() method now properly handles interrupted system calls.
2009-03-31Apply patch for netbsd multiprocessing supportJesse Noller-1/+1
2009-02-11Issue #1008086: Fixes socket.inet_aton() to always return 4 bytes evenGregory P. Smith-2/+8
on LP64 platforms (most 64-bit Linux, bsd, unix systems).
2009-01-31- Issue #5104: The socket module now raises OverflowError when 16-bit port andGregory P. Smith-3/+27
protocol numbers are supplied outside the allowed 0-65536 range on bind() and getservbyport().
2009-01-09Fix issue 4884, preventing a crash in the socket code when python is compiledJeffrey Yasskin-1/+5
with llvm-gcc and run with a glibc <2.10.
2008-08-12Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple,Martin v. Löwis-10/+32
by denying s# to parse objects that have a releasebuffer procedure, and introducing s*. More module might need to get converted to use s*.
2008-06-13Restore support for Microsoft VC6 compiler.Amaury Forgeot d'Arc-2/+2
Some functions in the msvcrt module are skipped, and socket.ioctl is enabled only when using a more recent Platform SDK. (and yes, there are still companies that use a 10-years old compiler)
2008-06-09This reverts r63675 based on the discussion in this thread:Gregory P. Smith-30/+30
http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
2008-05-26Renamed PyString to PyBytesChristian Heimes-30/+30
2008-03-28Repair compilation for Visual Studio 2005.Amaury Forgeot d'Arc-0/+4
I applied the same changes manually to VS7.1 and VC6 files; completely untested. (Christian, don't try too hard merging this change into py3k. It will be easier to do the same work again on the branch)
2008-03-18Remove all traces of HAVE_STRERROR.Brett Cannon-6/+1
The removal of strerror.c led to the function check being removed from configure.in.
2008-01-23patch 1754489 by vlahan:Armin Rigo-2/+2
improve portability of address length calculation for AF_UNIX sockets
2008-01-19Patch #1019808 from Federico Schwindt: Return correct socket error whenAndrew M. Kuchling-9/+16
a default timeout has been set, by using getsockopt() to get the error condition (instead of trying another connect() call, which seems to be a Linuxism). 2.5 bugfix candidate, assuming no one reports any problems with this change.
2008-01-13Make Modules/socketobject.c compile for Windows again.Thomas Heller-4/+7
2008-01-11Removed unused variableChristian Heimes-1/+1
2008-01-11Guard definition of TIPC_SUB_CANCEL with an #ifdef.Georg Brandl-1/+4
2008-01-11Comment-out missing constant (from rev 59819)Raymond Hettinger-1/+1
2008-01-07Issue #1646: Make socket support TIPC. The socket module now has supportChristian Heimes-1/+153
for TIPC under Linux, see http://tipc.sf.net/ for more information. Thanks to Alberto Bertogli for the patch
2008-01-04Added interface to Windows' WSAIoctl and a simple example for a network sniffer.Christian Heimes-1/+42
2007-12-19#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes-8/+8
Py_REFCNT. Macros for b/w compatibility are available.
2007-12-18Issue #1645 by Alberto Bertogli. Fix a comment.Guido van Rossum-6/+6
2007-11-22Backport of the PCbuild9 directory from the py3k branch.Christian Heimes-0/+4
I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k. Have fun! :)
2007-11-16A patch from issue 1378 by roudkerk:Guido van Rossum-81/+5
Currently on Windows set_error() make use of a large array which maps socket error numbers to error messages. This patch removes that array and just lets PyErr_SetExcFromWindowsErr() generate the message by using the Win32 function FormatMessage().
2007-09-09Change socket.error to inherit from IOError rather than being a standGregory P. Smith-1/+2
alone class. This addresses the primary concern in http://bugs.python.org/issue1706815 python-dev discussion here: http://mail.python.org/pipermail/python-dev/2007-July/073749.html I chose IOError rather than EnvironmentError as the base class since socket objects are often used as transparent duck typed file objects in code already prepared to deal with IOError exceptions. also a minor fix: urllib2 - fix a couple places where IOError was raised rather than URLError. for better or worse, URLError already inherits from IOError so this won't break any existing code. test_urllib2net - replace bad ftp urls.
2007-07-21PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis-10/+9
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
2007-06-05Fix build on FreeBSD. Bluetooth HCI API in FreeBSD is quite differentHye-Shik Chang-2/+5
from Linux's. Just fix the build for now but the code doesn't support the complete capability of HCI on FreeBSD yet.
2007-03-31Fix method names. Will backport.Neal Norwitz-3/+4
2007-03-28Bug 1688393. Adds a control of negative values inFacundo Batista-2/+8
socket.recvfrom, which caused an ugly crash.
2007-02-14Update 1432399 to removal of _BT_SOCKADDR_MEMB.Martin v. Löwis-2/+1
2007-02-14Patch #1432399: Add HCI sockets.Martin v. Löwis-0/+34
2007-02-13Patch #1657276: Make NETLINK_DNRTMSG conditional.Martin v. Löwis-0/+2
Will backport.