| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@1080106 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Fix PR44971.
Return APR_ENOENT if we cannot find service, errno is undefined.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@660713 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
This may fix a bug in IPv6 handling, depending on whether or not the
compiler zeroes non-static structure members by default.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@573481 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Comment taken from r473681
(http://svn.apache.org/viewvc?view=rev&revision=473681):
Making a new API guarantee (to have apr_socket_accept not allocate
from the pool on error) can only be done in a minor version bump.
2. It breaks remote_addr handling (e.g. in httpd).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@565517 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
works fine if enabled (testsockets passes). Modifes the #if's so the
Win9x code path is also used for WinCE.
PR: 39859
Submitted by: Curt Arnold <carnold apache.org>
Backport: 543286
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@543288 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Reviewed by wrowe and jorton
Partial backport of 480212
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@480216 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@448246 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@443264 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@442526 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
apr_socket_send()
Submitted by: Chris Demetriou <c.g.demetriou gmail.com>
Backports: 374924
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@374926 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
send size to 64k. As any call to apr_socket_send() must handle partial sends
anyway, this will be treated just like any other partial send.
This was occurring when svnserve was sending a large file.
Backport from trunk of r366063.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@366065 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
passed to sysctlbyname. The fifth argument is a size_t, not a pointer,
so using NULL is incorrect.
This change is being committed directly to the 0.9.x branch because the
version of this code in trunk no longer uses sysctlbyname.
* network_io/unix/sendrecv.c
(include_hdrs_in_length): Correct 5 argument to sysctlbyname.
* CHANGES: Note change.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@348360 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
getnameinfo() may copy the port field around, so initialize
it to something to prevent unitialized memory reference
warnings with Purify
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@320734 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
PR: 32177
Submitted by: Sim <sgobbi datamanagement.it>, Jeff Trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@190577 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
may pass different values on different calls; so don't
try to optimize this setsockopt()
SO_LINGER is an odd one; the real setsockopt provides
a configurable value for the timeout; but with APR, this
is a flag and the timeout is hardcoded; so the optimization
stays for this one
Reviewed by: Joe Orton
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@190574 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
network_io/unix/sendrecv.c: Deal with EAGAIN after poll().
Following apr_wait_for_io_or_timeout(), we were doing I/O and not
dealing with EAGAIN. It is legal for poll() to indicate that a socket
is available for writing and then for write() to fail with EAGAIN if
the state of the socket changed in between the poll() and write()
calls. This only seems to actually happen on Mac OS 10.4 (Darwin 8).
Rather than trying write() only once, if we get an EAGAIN, continue to
call apr_wait_for_io_or_timeout() and try writing.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@178842 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@151409 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@105962 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
#ifdef'ed
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65290 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65287 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
* network_io/unix/sockaddr.c (apr_getnameinfo): Fix getnameinfo on
v4mapped addresses for *BSD.
PR: 30066
Submitted by: Tsurutani Naoki <turutani scphys.kyoto-u.ac.jp>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65279 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
* network_io/unix/sockaddr.c (apr_getnameinfo): Use apr_uint32_t to
fix build on platforms without uint32_t; use struct sockaddr_in rather
than struct apr_sockaddr_t.
Submitted by: Joe Orton
Reviewed by: Jeff Trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65123 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
Don't assume getnameinfo() can handle IPv4-mapped IPv6 addresses
on any platforms.
Submitted by: Jeff Trawick, Joe Orton, Colm MacC�rthaigh <colm stdlib.net>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65106 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
* network_io/unix/sockets.c (apr_socket_accept): Move TPF check for
accept returning zero out of httpd.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65060 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65036 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Even if we do not check the value of APR_IPV6_V6ONLY before setting, we still
must set the option cache if we're setting APR_IPV6_V6ONLY. Otherwise,
later apr_socket_opt_get calls will fail.
This fixes Listen directives on IPv6 machines where IPV6_V6ONLY may be
enabled (i.e. FreeBSD 5.x, OpenBSD, NetBSD) where it would not properly
bind to the IPv4 socket.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65035 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
* network_io/sockets/sockaddr.c (call_resolver): Ignore anything other
than AF_INET and AF_INET6 addresses.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64940 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64926 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64925 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with no O_NDELAY or FNDELAY flags
this has been here since apr time zero when it was mis-copied
from Apache httpd 1.3's buff.c, so perhaps this doesn't actually
make anyone's life easer
Discovered by: Joe Orton
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64924 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64903 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
non-blocking socket. (and find it is connected, not get unexpected
EISCONN retval)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64841 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
SIOCATMARK symbol isn't available, to avoid breaking APR 0.9/httpd 2.0
distributions. [William Rowe, Jim Jagielski, Brian Havard and Jeff Trawick]
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64691 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rev1.38 was:
Use AI_ADDRCONFIG flag by default, where available.
* sockaddr.c (call_resolver): For lookups of AF_UNSPEC addresses, set
the AI_ADDRCONFIG flag; retry without the flag if getaddrinfo returns
EAI_BADFLAGS.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64667 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
it wasn't needed in previous releases of APR or Apache because
we didn't call the resolver when hostname was NULL
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64615 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
future releases of Darwin get it 'right', then we'll detect that.
Take Jeff's gni_mapped and rewrite it as an autoconf macro, so we can do
configure-time detection of this brokenness and stop hardcoding Darwin's
inability to do the drop down.
Then, take Colm's patch and make it conditional on the autoconf macro above.
Submitted by: Colm MacCarthaigh <colm@stdlib.net> and Jeff Trawick
Reviewed by: Justin Erenkrantz
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64599 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Since we're at the same lifetime as the prev_sa, it's safe to just point
to that one as well.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64590 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
need to fail over to APR_INET rather than passing APR_UNSPEC.
(Justin tweaked the patch so this code would always execute and add a
description why we need this because it's not exactly obvious.)
Submitted by: Colm MacCarthaigh <colm@stdlib.net>
Reviewed by: Justin Erenkrantz
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64589 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
consistent in storing NULL values in the hostname if that is what was passed
in by the caller.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64588 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
hostname. Also, fix bugs in the getaddrinfo() implementation which are
present when a hostname is not available.
(Justin modified Colm's patch to set servname when we do not have a hostname.
RFC 2553 requires one of them to be non-NULL, and Solaris enforces that.)
Submitted by: Colm MacC�rthaigh <colm@stdlib.net>
Reviewed by: Justin Erenkrantz
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64587 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
behavior
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64576 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
* sockaddr.c (call_resolver): For lookups of AF_UNSPEC addresses, set
the AI_ADDRCONFIG flag; retry without the flag if getaddrinfo returns
EAI_BADFLAGS.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64571 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
multiple sockets in the same pool.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64565 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
that resulted in infinite timeouts being used for non-blocking
sockets with apr_socket_connect() and some read/write calls.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64522 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64521 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
socket non-blocking after disabling the timeout.
Submitted by: Jacob Craig Lewallen <jlewalle@cs.ucr.edu>
Reviewed by: Jeff Trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64520 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Submitted by: Adam Sussman <myddryn@vishnu.vidya.com>
Reviewed by: Jeff Trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64472 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
if no APR_HAS_SENDFILE. If it should be exported, then someone will
have to remove the conditionals from the global include file and
add stubs to the other platforms for apr_sendfile and apr_socket_sendfile.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64466 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64433 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
for the original patch. Use the new symbols in all internals, taking
us one step closer to being ready to just chop out the old defines.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64378 13f79535-47bb-0310-9956-ffa450edef68
|