| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Fixes for AF_UNIX support on OS/2:
- return the full size of the sockaddr_un structure, without which
bind() fails with EINVAL;
- set test_socketserver to use a socket name that meets the form
required by the underlying implementation;
- don't bother exercising the forking AF_UNIX tests on EMX - its
fork() can't handle the stress.
|
| |
|
|
|
|
| |
OS/2's TCP/IP stack supports AF_UNIX sockets, with the limitation that
the socket name must start with /socket32/. Unlike Unix systems, this
file never exists in the file system.
|
| |
|
|
|
| |
Fix a bunch of typos in documentation, docstrings and comments.
(From SF patch #810751)
|
| |
|
|
| |
SGI compiler and GCC seem to need this.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
I don't think the fix here is very good, but I'm not sure what would
be better. In particular, we should not be defining _SGIAPI, but lots
of things break if we remove it.
|
| |
|
|
|
| |
Use Py_AtExit instead of atexit so we are called during Py_Finalize()
rather than during DLL teardown.
|
| |
|
|
|
|
|
|
|
| |
(Contributed by Bob Halley)
Added a new exception, socket.timeout so that timeouts can be differentiated
from other socket exceptions.
Docs, more tests, and newsitem to follow.
|
| |
|
|
| |
riscospath.extsep, and use os.extsep throughout.
|
| |
|
|
| |
is enabled.
|
| |
|
|
| |
emulation (ie. when HAVE_GETADDRINFO isn't defined).
|
| |
|
|
|
| |
access with lock on those platforms that getaddrinfo() isn't (known to be)
thread-safe. Thanks to MvL for mentoring this patch.
|
| |
|
|
| |
be taken, and define NI_MAX{HOST|SERV} if necessary.
|
| | |
|
| |
|
|
|
| |
to that of Python2.1. Such nnn.nnn.nnn.nnn addresses are just used directly,
not passed to the resolver for a pointless lookup.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
- 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).
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Rather than trying to second-guess the various error returns
of a second connect(), use select() to determine whether the
socket becomes writable (which means connected).
|
| |
|
|
|
| |
!HAVE_INET_ATON case. Repaired that, and tried to repair what looked
like out-of-date comments.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
inet_aton() rather than inet_addr() -- the latter is obsolete because
it has a problem: "255.255.255.255" is a valid address but
indistinguishable from an error.
(I'm not sure if inet_aton() exists everywhere -- in case it doesn't,
I've left the old code in with an #ifdef.)
|
| |
|
|
|
| |
In sendall(), do an internal select before each send() call, instead
of only for the first one.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The attached patch enables shared extension
modules to build cleanly under Cygwin without
moving the static initialization of certain function
pointers (i.e., ones exported from the Python
DLL core) to a module initialization function.
Additionally, this patch fixes the modules that
have been changed in the past to accommodate
Cygwin.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
On HPUX, Solaris, Tru64 (Dec UNIX), and IRIX (I think),
O_NONBLOCK is the POSIX version of non-blocking I/O
which is what we want.
On Linux and FreeBSD (at least), O_NONBLOCK and O_NDELAY are the same.
So this change should have no negative effect on those platforms.
Tested on Linux, Solaris, HPUX.
Thanks to Anders Qvist for diagnosing this problem.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
MacIntyre. At least on OS/2, a subsequent connect() on a nonblocking
socket returns errno==EISCONN to indicate success. This seems
harmless on Unix.
|
| |
|
|
|
|
| |
value; others were inconsistent in what to name the argument or return
value; a few module-global functions had "socket." in front of their
name, against convention.
|
| |
|
|
|
|
|
| |
WSAEWOULDBLOCK, the second connect() attempt appears to yield WSAEISCONN
on Win98 but WSAEINVAL on Win2K. So accept either as meaning "yawn,
fine". This allows test_socket to succeed on my Win2K box (which it
already did on my Win98SE box).
|
| |
|
|
|
|
| |
for Py_Main().
Thanks to Kalle Svensson and Skip Montanaro for the patches.
|
| |
|
|
| |
Committed to 2.2 branch.
|
| | |
|
| |
|
|
|
|
|
| |
Fixes SF bug #568322.
The code should raise an OverflowError if the long is > 32 bits, even
on platforms where sizeof(long) > 4.
|
| |
|
|
|
| |
command line for Windows builds. This should allow MSVC to import and
build the Python MSVC6 project files without error.
|
| |
|
|
| |
closed. Prevents core dump.
|
| |
|
|
| |
compiler wngs on Windows.
|
| | |
|
| |
|
|
|
| |
getdefaulttimeout() functions to the socket and _socket modules, and
appropriate tests.
|