| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
- Issue #2632: Prevent socket.read(bignumber) from over allocating memory
in the common case when the data is returned from the underlying socket
in increments much smaller than bignumber.
|
| |
|
|
|
|
| |
Fix SF #1688393, sock.recvfrom(-24) crashes
Also fix some method names that were copied incorrectly (trunk fixed).
|
| |
|
|
| |
(backport from rev. 53511)
|
| |
|
|
|
| |
a socket operation on a socket with a timeout, the exception will be
caught correctly. Previously, the exception was not caught.
|
| | |
|
| |
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
| |
abstract namespace that is now fully supported.
|
| |
|
|
| |
lookup to use the IP address returned by gethosbyname.
|
| | |
|
| | |
|
| |
|
|
| |
properties.
|
| |
|
|
| |
now exposed via new get...() methods.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
| |
of the test possiblities for testGetServBy().
|
| | |
|
| |
|
|
| |
service.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
Windows (XP at least ;). Test in this order: echo, daytime, domain.
|
| |
|
|
| |
getservbyname() optional. Update the tests and the docs.
|
| | |
|
| |
|
|
|
|
| |
The .closed property always returned the wrong result.
Bugfix candidate!
|
| |
|
|
| |
sentinel variable
|
| |
|
|
|
|
| |
(Contributed by Bob Halley)
Add unittests for the new socket.timeout exception.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
This makes the test pass on Windows again (and on other platforms
that don't have these).
|
| |
|
|
|
|
|
|
|
| |
- 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).
|
| | |
|
| | |
|
| |
|
|
| |
testNtoHL but testNtoH.
|
| | |
|
| |
|
|
| |
GUSI/Threading interaction, I'm not sure, but I don't have the time to fix this right now.
|
| | |
|
| |
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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.)
|
| |
|
|
| |
should always have it.
|
| |
|
|
|
|
| |
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
|
| |
|
|
|
| |
thinking that he was running his new test by running "make test".
Also, I can't get this to fail any more. Your turn. :-)
|