| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Patch #1519025 and bug #926423: If a KeyboardInterrupt occurs during | Neal Norwitz | 2006-08-02 | 1 | -0/+32 |
| | | | | | | a socket operation on a socket with a timeout, the exception will be caught correctly. Previously, the exception was not caught. | ||||
| * | Release all forwarded functions in .close. Fixes #1513223. | Martin v. Löwis | 2006-07-01 | 1 | -2/+17 |
| | | |||||
| * | Prevent spurious leaks when running regrtest.py -R. There may be more | Neal Norwitz | 2006-06-18 | 1 | -0/+3 |
| | | | | | | | | | issues that crop up from time to time, but this change seems to have been pretty stable (no spurious warnings) for about a week. Other modules which use threads may require similar use of threading_setup/threading_cleanup from test_support. | ||||
| * | Fix the socket tests so they can be run concurrently. Backport candidate | Neal Norwitz | 2006-06-12 | 1 | -2/+4 |
| | | |||||
| * | Get test to pass on S/390. Shout if you think this change is incorrect. | Neal Norwitz | 2006-06-11 | 1 | -1/+6 |
| | | |||||
| * | Fixes in struct and socket from merge reviews. | Martin Blais | 2006-06-04 | 1 | -6/+6 |
| | | | | | | | | | | | | | | - Following Guido's comments, renamed * pack_to -> pack_into * recv_buf -> recv_into * recvfrom_buf -> recvfrom_into - Made fixes to _struct.c according to Neal Norwitz comments on the checkins list. - Converted some ints into the appropriate -- I hope -- ssize_t and size_t. | ||||
| * | Support for buffer protocol for socket and struct. | Martin Blais | 2006-05-26 | 1 | -1/+32 |
| | | | | | | | | | | | * Added socket.recv_buf() and socket.recvfrom_buf() methods, that use the buffer protocol (send and sendto already did). * Added struct.pack_to(), that is the corresponding buffer compatible method to unpack_from(). * Fixed minor typos in arraymodule. | ||||
| * | SF Patch #1062014: AF_UNIX sockets under Linux have a special | Armin Rigo | 2006-04-19 | 1 | -0/+28 |
| | | | | | abstract namespace that is now fully supported. | ||||
| * | Deal with openbsd's different style of default /etc/hosts by forcing the fqdn | Anthony Baxter | 2006-04-03 | 1 | -1/+1 |
| | | | | | lookup to use the IP address returned by gethosbyname. | ||||
| * | Fix typo. | Martin v. Löwis | 2006-03-26 | 1 | -1/+1 |
| | | |||||
| * | Provide more debug output, to diagnose OpenBSD test failures. | Martin v. Löwis | 2006-03-26 | 1 | -1/+1 |
| | | |||||
| * | Correct API design mistake from rev. 43126: make socket attributes readonly ↵ | Georg Brandl | 2006-03-21 | 1 | -5/+5 |
| | | | | | properties. | ||||
| * | RFE #567972: Socket objects' family, type and proto properties are | Georg Brandl | 2006-03-17 | 1 | -0/+8 |
| | | | | | now exposed via new get...() methods. | ||||
| * | patch [ 756021 ] Allow socket.inet_aton("255.255.255.255") on Windows | Georg Brandl | 2005-08-26 | 1 | -0/+2 |
| | | |||||
| * | Add support for FreeBSD 7. | Hye-Shik Chang | 2005-07-17 | 1 | -1/+1 |
| | | |||||
| * | Fix test for socket.getfqdn() to also include the name returned by | Brett Cannon | 2005-03-11 | 1 | -1/+1 |
| | | | | | | | | socket.gethostname() in the check for a valid return. Also clarified docs (official and docstring) that the value from gethostname() is returned if gethostbyaddr() doesn't do the job. | ||||
| * | Add 'linux2' as one of the platforms that does not use the echo service as one | Brett Cannon | 2004-11-20 | 1 | -1/+2 |
| | | | | | of the test possiblities for testGetServBy(). | ||||
| * | Add support for FreeBSD 6. | Hye-Shik Chang | 2004-08-18 | 1 | -1/+1 |
| | | |||||
| * | Being bsd-based, darwin/macosx has the same limitation w.r.t. the "echo" | Skip Montanaro | 2004-08-16 | 1 | -1/+1 |
| | | | | | service. | ||||
| * | Whitespace normalization. | Tim Peters | 2004-08-09 | 1 | -1/+1 |
| | | |||||
| * | Patch #1003700: Add socketpair function to socket module. | Dave Cole | 2004-08-09 | 1 | -0/+43 |
| | | |||||
| * | FreeBSD's services file contains an additional echo service entry, with | Andrew MacIntyre | 2004-07-12 | 1 | -1/+7 |
| | | | | | | | | | | | | a non-standard protocol and on a lower port than the tcp/udp entries, which breaks the assumption that there will only be one service by a given name on a given port when no protocol is specified. Previous versions of this code have had other problems as a result of different service definitions amongst common platforms. As this platform has an extra, unexpected, service entry, I've special cased the platform rather than re-order the list of services checked to highlight the pitfall. | ||||
| * | testGetServBy(): Use services that should be available both on *nix and | Barry Warsaw | 2004-07-06 | 1 | -1/+1 |
| | | | | | Windows (XP at least ;). Test in this order: echo, daytime, domain. | ||||
| * | Added socket.getservbyport(), and make its second argument and that of | Barry Warsaw | 2004-06-28 | 1 | -10/+22 |
| | | | | | getservbyname() optional. Update the tests and the docs. | ||||
| * | Add weakref support to sockets and re pattern objects. | Raymond Hettinger | 2004-05-31 | 1 | -0/+14 |
| | | |||||
| * | SF bug 924242: socket._fileobject._getclosed() returns wrong value | Tim Peters | 2004-03-28 | 1 | -0/+8 |
| | | | | | | | The .closed property always returned the wrong result. Bugfix candidate! | ||||
| * | Fix indentation error in testGetServByName and rewrite loop to avoid clumsy | Skip Montanaro | 2004-02-10 | 1 | -5/+2 |
| | | | | | sentinel variable | ||||
| * | SF patch #760257: add socket.timeout exception | Raymond Hettinger | 2003-06-29 | 1 | -2/+57 |
| | | | | | | | (Contributed by Bob Halley) Add unittests for the new socket.timeout exception. | ||||
| * | Whitespace normalization. | Tim Peters | 2003-05-12 | 1 | -3/+3 |
| | | |||||
| * | Combine the functionality of test_support.run_unittest() | Walter Dörwald | 2003-05-01 | 1 | -10/+11 |
| | | | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807. | ||||
| * | Skip testing inet_ntop() an inet_pton() if they aren't defined. | Guido van Rossum | 2003-04-25 | 1 | -0/+8 |
| | | | | | | This makes the test pass on Windows again (and on other platforms that don't have these). | ||||
| * | Patch by Jp Calderone: | Guido van Rossum | 2003-04-25 | 1 | -0/+59 |
| | | | | | | | | | | - The socket module now provides the functions inet_pton and inet_ntop for converting between string and packed representation of IP addresses. See SF patch #658327. This still needs a bit of work in the doc area, because it is not available on all platforms (especially not on Windows). | ||||
| * | Also skip testHostnameRes() if gethostbyaddr() raises an exception. | Guido van Rossum | 2002-12-26 | 1 | -1/+5 |
| | | |||||
| * | Skip testHostnameRes() if gethostbyname() raises an exception. | Guido van Rossum | 2002-12-26 | 1 | -1/+5 |
| | | |||||
| * | Since it tests both ntohl and ntohs, the test should not be called | Guido van Rossum | 2002-09-16 | 1 | -1/+1 |
| | | | | | testNtoHL but testNtoH. | ||||
| * | Maybe this fixes test_socket on 64-bit Linux. | Guido van Rossum | 2002-09-14 | 1 | -9/+13 |
| | | |||||
| * | Skip UDP testing for MacPython (for now), it hangs. This may be due to | Jack Jansen | 2002-09-06 | 1 | -1/+3 |
| | | | | | GUSI/Threading interaction, I'm not sure, but I don't have the time to fix this right now. | ||||
| * | Don't use hex constants representing negative numbers. | Guido van Rossum | 2002-08-12 | 1 | -1/+1 |
| | | |||||
| * | testSendAll(): loop until all data is read; this was necessary at | Guido van Rossum | 2002-08-08 | 1 | -3/+3 |
| | | | | | | | least on OS/2 (see note on SF patch 555085 by A I MacIntyre) but looks like the test *could* fail on any other platform too -- there's no guarantee that recv() reads all data. | ||||
| * | Whitespace normalization. | Tim Peters | 2002-08-08 | 1 | -1/+1 |
| | | |||||
| * | Replace docstrings on test functions witrh comments -- then unittest | Guido van Rossum | 2002-08-08 | 1 | -31/+50 |
| | | | | | | | | | | | | | | prints function and module names, which is more informative now that we repeat some tests in slightly modified subclasses. Add a test for read() until EOF. Add test suites for line-buffered (bufsize==1) and a small custom buffer size (bufsize==2). Restructure testUnbufferedRead() somewhat to avoid a potentially infinite loop. | ||||
| * | Tighten the unbuffered readline test to distinguish between the two lines. | Guido van Rossum | 2002-08-07 | 1 | -4/+4 |
| | | |||||
| * | Oops. I accidentally commented out some tests. | Guido van Rossum | 2002-08-07 | 1 | -4/+4 |
| | | |||||
| * | "Unbuffered" mode of class _fileobject wasn't actually unbuffered, | Guido van Rossum | 2002-08-07 | 1 | -6/+35 |
| | | | | | | | | | | | and this broke a Zope "pipelining" test which read multiple responses from the same connection (this attaches a new file object to the socket for each response). Added a test for this too. (I want to do some code cleanup too, but I thought I'd first fix the problem with as little code as possible, and add a unit test for this case. So that's what this checkin is about.) | ||||
| * | testGetServByName shouldn't check for getservbyname - the socket module | Skip Montanaro | 2002-08-02 | 1 | -18/+17 |
| | | | | | should always have it. | ||||
| * | modify testGetServByName so it tries a few different protocols. In this day | Skip Montanaro | 2002-08-02 | 1 | -5/+17 |
| | | | | | | | and age of rampant computer breakins I imagine there are plenty of systems with telnet disabled. Successful check of at least one getservbyname() call is required for success | ||||
| * | Enable test_socket again, if only to prevent mistakes like Jeremy | Guido van Rossum | 2002-07-31 | 1 | -2/+2 |
| | | | | | | thinking that he was running his new test by running "make test". Also, I can't get this to fail any more. Your turn. :-) | ||||
| * | Repair testNtoH for large long arguments. | Jeremy Hylton | 2002-07-31 | 1 | -9/+8 |
| | | | | | | | If the long is large enough, the return value will be a negative int. In this case, calling the function a second time won't return the original value passed in. | ||||
| * | Extended socket.htonl and ntohl to accept longs. | Jeremy Hylton | 2002-07-25 | 1 | -0/+11 |
| | | | | | | | | Fixes SF bug #568322. The code should raise an OverflowError if the long is > 32 bits, even on platforms where sizeof(long) > 4. | ||||
| * | Remove test that was none too picky about whether attributes exist. | Jeremy Hylton | 2002-07-25 | 1 | -41/+0 |
| | | |||||
