| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1434858 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
email to the spammers
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1430410 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
poll/unix/pollcb.c: In function 'pollcb_provider':
poll/unix/pollcb.c:47:5: warning: enumeration value 'APR_POLLSET_AIO_MSGQ' not handled in switch
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1372197 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
IPC message queue. Create a configure test for that combo and test it
elsewhere.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1325944 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1308950 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1308938 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
found an aio.h header file. add a test for the intended platform too.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1308923 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
no support for apr_pollcb yet.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1308910 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1089528 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
descriptors.
PR: 49882
Patch for one situation submitted by: Stefan Ruppert <sr myarm.com>
Extended by: trawick
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1089433 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
(icc complains, I sympathize)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1086692 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
instead of just inserting a return at the top
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@987639 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
PR: 49094
Submitted by: Sami Tolvanen <sami.tolvanen mywot.com>
Reviewed by: trawick
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@933271 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
pipe when the pollset was created with APR_POLLSET_NOCOPY
Submitted by: Neil Conway <nrc cs.berkeley.edu>
Reviewed by: trawick
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@932585 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
or similar, this is just a wrapper for a pollset.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@923329 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
non-wakeable pollset.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@923320 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Also adds stubs for apr_poll_method_defname() and apr_pollset_method_name().
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@923311 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
* create_wakeup_pipe()
* close_wakeup_pipe()
* drain_wakeup_pipe()
use generic apr_poll_ since these are used from both apr_pollset_ and
apr_pollcb_
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@902090 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@902077 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@901088 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
apr_pollset_wakeup(). Along the way, refactor the code for
creating/managing the wakeup pipe to a separate file, wakeup.c
* Add apr_pollcb_method_name(), with similar behavior to
apr_pollset_method_name()
* Add minimal unit tests for apr_pollset_wakeup() and apr_pollcb_wakeup()
apr_pollcb_wakeup() is supported with all the poll methods supported
by pollcb (kqueue, epoll, poll, and event ports).
Submitted by: Neil Conway <nrc@cs.berkeley.edu>
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@899905 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@892718 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@892393 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
platform, move declarations out of .c sources
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@892386 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
port_getn() returns -1/EINTR with nget > 0.
This resolves a crash when receiving a signal.
PR: 48030
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@836091 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
passing nget=n will block until n events are available
(or timeout/signal occurs)
possible future optimization:
in order to retrieve 1 or more events, first call port_getn()
with nget=0 to find out how many events are available, then
call it again with the number available
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@834136 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
between
. apr_{pollset|pollcb}_create_ex(..., APR_POLLSET_DEFAULT)
and
. apr_{pollset|pollcb}_create(...)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@834040 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
simplify logic to update the caller's pollcb/pollset ptr,
fixing a apr_pollcb_create_ex() crash in one of the
fall-back paths which was reported by Neil Conway
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@834029 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
port_getn() on Solaris 10 x86.
AFAICT this problem only occurs when the return code should be
zero, so changing the return code check should be sufficient.
APR 1.3.8 wasn't affected.
PR: 48029
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@829789 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
(ETIME is sometimes reported along with an event.)
PR: 47645
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@807263 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
breaks the build.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@804160 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
threads.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@791333 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@789066 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
(This is apparently a trunk-only bug.)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@781884 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
nor properly maintained by these implementations, so axe the
related code
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@754924 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
T1: port_getn called from pollset_poll
T2: pollset_remove called for fd X
T2: obtains ring lock
T1: port_getn returns event for fd X, kernel disassociates from port
T1: blocks on ring lock
T2: moves ring element for fd X from query ring to dead ring
T2: releases ring lock
T1: obtains ring lock
T1: moves ring element for fd X to add ring, assuming still on query ring
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@750744 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
port_dissociate (sic) if it isn't on the add ring
when we remove an element from the add ring, we can release it
immediately to the free ring
(elements removed from the query ring are the ones that have to be
placed on the dead ring temporarily)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@750708 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@750279 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
and the query ring; it can be on only one of them
reverse the search order of the two lists, so that we
search the (often) shorter/more likelier list first
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@750277 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
axe logic to set ignored conditions in the poll request structures
(these conditions are return-only and are always reported when
they occur)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@749490 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
impl_pollset_create():
. return the actual port_create() failure instead of APR_ENOMEM
impl_pollset_add():
. return the actual port_associate() failure instead of APR_ENOMEM
impl_pollset_poll():
. catch port_associate() failures
. don't report returned events to caller unless something popped
besides the wakeup pipe
impl_pollcb_poll():
. fix incorrect mapping of EINTR onto APR_TIMEUP
. don't hide interesting error codes behind APR_EGENERAL
generally:
. axe redundant APR_RING_EMPTY() invocations
. don't check for EINTR explicitly, as it is handled appropriately
by the apr_get_netos_error() invocation (IOW, EINTR == APR_EINTR here)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@749049 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tweak the code ever so slightly to highlight a critical kqueue()
characteristic: POLLIN and POLLOUT won't be reflected in a single
returned event
impl_pollset_remove():
axe a redundant invocation of APR_RING_EMPTY()
other: trivial tweaks for consistency or readability
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@749025 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
the wakeup pipe occurred.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@749023 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
It might map to APR_POLLNVAL when used in conjunction with other information
returned by kevent().
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@749021 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
overspecifies the conditions (e.g., APR_POLLIN|APR_POLLOUT when checking
only for APR_POLLOUT).
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@749008 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
kevent
structures for POLLIN vs. POLLOUT
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@748953 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
APR_POLLOUT for the same descriptor. This requires separate kevent structures
for both conditions.
Importantly, if both conditions are present, they will be returned in separate
apr_pollfd_t structures with this implementation (to avoid the cycles to coalesce
into the minimal number of structures).
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@748951 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@748879 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@748684 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@748371 13f79535-47bb-0310-9956-ffa450edef68
|