| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in the getaddrinfo() flavor we were needlessly building a
string form of the port number to pass to getaddrinfo() so
it would put it in the sockaddrs it built... but then we
stuffed the port number in the sockaddrs anyway
given that we no longer need getaddrinfo() to be able to
handle port numbers properly, there is no sense checking for
that ability at configure time
suddenly we think that AIX 4.3.3.no-fixes has a working
getaddrinfo() (it previously failed the pass-the-port-number-
to-getaddrinfo check)
but that level of AIX doesn't fill in the family field in
the sockaddrs built by getaddrinfo()... rather than kludge
around it in apr_sockaddr_info_get(), it is better to change
the configure test to refuse to use getaddrinfo() on such a
system
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63125 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
so move the definition to sa_common.c, the only file that needs
to have that information.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63111 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
code, we assume that sin_port and sin6_port are at the same
offset
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63058 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63055 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
submitted by Mladen Turk <mturk@mappingsoft.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62967 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
to apr_send() and apr_recv(). Breakage was seen in 64-bit mode
on s/390.
PR: 9712
Submitted by: Neale.Ferguson@SoftwareAG-usa.coom
Reviewed by: Jeff Trawick, who added the fix to the apr_send() parameter
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62910 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
there. Not everyone has FreeBSD or Linux.
getnameinfo() should return a rc containing 0 (success) or some EAI_ value.
This rc can be used as a mapped APR_ error (+APR_OS_START_EAIERR).
Only if the rc == EAI_SYSTEM, errno should be inspected (I see no reason
whatsoever to look at h_errno, as (like for apr_sockaddr_info_get()'s call
of getaddrinfo()) the error is supposed to be in errno.
However, and because h_errno has been zeroed out before the call,
I added another test for nonzero h_errno. Everone happy?
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62876 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
return value. See isc.org's bind9, or FreeBSD's lib/libc/net/getnameinfo.c
Implementations that set h_errno a simply broken.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62858 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Essentially R5 is very fast to return if you have a socket available, but
if you have more than one you'll only get the first one! hence, we now track
how many socket/checks we're trying for and if we don't have all of them
(which let's face it seems unlikely) we quickly see if any more sockets
are available for us. Messy, but it works :)
I've added checking for the lowsocket to reduce the range of sockets we check.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62781 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
cheaper call to apr_palloc.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62779 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62778 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62703 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
sockaddr from being returned in some cases
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62701 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
call so that we don't chew up huge chunks of memory when using non-blocking
sockets and also avoiding unnecessary memory allocations on error conditions.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62700 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
for internal consumption, and apr_initialize must be called, resolve the
situation once and use the static, shared value for the remainder of the
program execution. Next step is to allow conditional builds [excluding
older 9x paths] if the user has no interest in 9x support.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62675 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
This handles v4-mapped IPv6 addresses.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62669 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
service name parameter, so pass NULL when port is 0
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62667 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62662 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
duplicates the correct code. If we need to do something with proto,
then _that_ can be hidden in an ifdef WIN32
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62610 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
We need to look at if IPPROTO_TCP is absolutely required, and if the
correct proto will be inferred for things such as SOCK_DGRAM for udp.
In any case, the existing code was certainly very ugly and not nice.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62609 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62548 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
being allocated and never freed until the process goes down.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62546 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
name and returns an error. Such behavior varied between platforms
before, since some systems returned an error if the buffer
wasn't large enough while others just truncated the returned
name and left it up to the app to detect truncation and/or
'\0'-terminate it.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62526 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
it doesn't segfault. Avoid some wasted storage in a poll-related
APR structure.
Submitted by: INOUE Seiichiro <inoue@ariel-networks.com>
Reviewed by: Jeff Trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62511 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Submitted by: Brad Froehle <epEnochRoot@yahoo.com>
Reviewed by: David Reid <dreid@apache.org>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62491 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
for the case where there are multiple events ORed together in
the events list.
Submitted by: Jamshid Mahdavi <mahdavi@volera.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62392 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
application doesn't specify the family (i.e., the application
passes in AF_UNSPEC) and APR isn't built with IPv6 support.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62316 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
apr_status_t layout. This is used to fix the bungling of these
error codes.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62243 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62206 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
a signal, it returns 0, as if a timeout occurred. If timeout was indefinite
we can safely assume that it was in fact interrupted.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62200 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62197 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
interrupted.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62194 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Submitted by: Sterling Hughes <sterling@designmultimedia.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62139 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62137 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62136 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
up the error but forgot to actually return with that error number.
Submitted by: Ian Holsman <ianh@cnet.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62132 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Warning #1 may or may not have ever existed (my mind is a blur), but this
change seems to be the most sensible way to go anyhow. The len parameter
to getsockopt() seems to most want to be an apr_socklen_t in order to get
along with all platforms.
Warning #2 I definitely saw on Solaris 2.6, which was that parm 4 to
getsockopt() was an incompatible pointer type. That's funky, because we
were passing in an int* to a function that generally expects a void*. Right?
Wrong, not in this case. Solaris 2.6 ifndef _XPG4_2 (and possibly Win32
as well according to msdn.microsoft.com) expect a char*! That's wacky.
Anyway, casting the int* to a char* makes these platforms happy (ugly though
it is), and the sane platforms that just take a void* could care less
either way.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62131 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
from getsockopt()
(not tested... 2 yr old is begging for a walk :) )
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62130 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
query the socket to find the actual error if the connect failed. This
is done using getsockopt with the SO_ERROR option. If error == 0, then
the connect succeeded, else error is the connect errno value.
Submitted by: Jeff Trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62129 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
time. According to Single Unix, a non-blocking connect has
succeeded when the select pops successfully. It has failed
if the select failed. The second connect was causing 502's
in the httpd-proxy.
Submitted by: John Barbee barbee@veribox.net
Reviewed by: Ryan Bloom
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62124 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
unsigned int to int as per the prototype. This avoids a type mismatch during
compilation.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62107 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
data types of the local variables used in the call to WSARecv() to
conform to the prototypes in order to clean up a type mismatch problem
during compilation.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62106 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
ioctlsocket() to
conform to the prototypes in order to clean up a type mismatch problem
during compilation.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62105 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
getaddrinfo()
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62071 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
getnameinfo(), but not IPv6. (Solaris 7.)
I made a similar change for getaddrinfo a week or two ago. No complaints
so far for that commit, so see how this fares.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62064 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use gethostbyaddr_r function when available.
The AIX gurus will have to test this to make sure I got their prototype
right. This compiles on Solaris.
Submitted by: Sterling Hughes <sterling@designmultimedia.com>
(Modified by Justin)
Reviewed by: Justin Erenkrantz
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62063 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
set when you expect the first non-blocking read to fail with
EAGAIN. Setting APR_INCOMPLETE_READ prior to calling apr_read
will cause select() to be called first to wait for bytes
to read. [Brian Pane, Dean Gaudet]
Reviewed by: Bill Stoddard
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62061 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- correctly set the file_as_socket
- add the apr_wait_for_timeout so it's visible
These come from Brad Froehle.
Submitted by: Brad Froehle <bradley_f@hotmail.com>
Reviewed by: David Reid <dreid@apache.org>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62038 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
the others (i.e. repeat the sendfile if we got EAGAIN and didn't
send any bytes).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62033 13f79535-47bb-0310-9956-ffa450edef68
|