Checkout Tools
  • last updated 13 mins ago
Constraints: committers
Constraints: files
Constraints: dates
Follow up to r1879449: yet better MPM poll callback API.

Let pass a const pfds to the MPM, for it to make a copy on the given pool

as needed.

  1. … 6 more files in changeset.
mpm_common: add pool argument to mpm_register_poll_callback[_timeout] hooks.

This is cleaner API than using pfds->pool implicitely.

MAJOR bump but reusing the existing hooks (with an API/ABI breakage) because

it's trunk material only.

  1. … 6 more files in changeset.
mpm_common: remove ap_mpm_unregister_poll_callback().

It's now called automatically by mpm_event and anyway can't be called safely

outside the MPM code without racing.

MAJOR bump.

  1. … 5 more files in changeset.
mod_status: Cumulate CPU time of exited child

processes in the "cu" and "cs" values.

Add CPU time of the parent process to the

"c" and "s" values.

  1. … 5 more files in changeset.
Fix some doxygen warning.

Make the use of 'pfds' and 'pds' consistent

  1. … 1 more file in changeset.
reverting the reverting of r1735174, r1735176 was the culprit
  1. … 7 more files in changeset.
reverting r1735174 as http/1.1 just terminated before response
  1. … 7 more files in changeset.
mpm: Generalise the ap_mpm_register_socket functions to accept pipes or sockets.

  1. … 7 more files in changeset.
core: Extend support for setting aside data from the network input filter

to any connection or request input filter.

  1. … 13 more files in changeset.
mpm: Add a complete_connection hook that confirms whether an MPM is allowed

to leave the WRITE_COMPLETION phase. Move filter code out of the MPMs.

  1. … 9 more files in changeset.
Remove some useless 'return' statements.
Save a few bytes in conf pool when parsing some directives. Use temp_pool when applicable.
  1. … 2 more files in changeset.
Revert r1601943, r1602058, r1605307 (socket callback returning pollfds)

Revert r1605369 (wstunnel refactoring)

per discassion on dev@httpd.a.o thread Message-ID:


  1. … 5 more files in changeset.
Socket event callback now takes pollfd.

User (e.g. mod_proxy_wstunnel) can know

which socket is ready.

  1. … 5 more files in changeset.
PR56333: Add an API to resume a connection that a handler has previously suspended.

Submitted by: Artem <artemciy>, Edward Lu <Chaosed0>

Committed by: covener

  1. … 7 more files in changeset.
Extend the socket callbacks in event to allow a timeout on the I/O callback.

When a socket callback has a timeout, an associated timer event is used to

remove the sockets from the pollset and call a timeout function.

* This includes a noteworthy change to the main event loop. Previously,

we would call epoll, then process the timer events, then iterate through the

poll results. After this patch, the timer events are processed before the poll()

a _non-queued_ action can change the pollset conents (a users timed callback

function conversely could easily sit in a queue while the main thread continues

down into epoll)

* timer events can now have sockets associated with them, those sockets are

removed from the pollset when the timer event fires w/o a queue to the worker.

* timer events now have a canceled flag that can be toggled without locking

the timer list.

* Drop the severity of some wstunnel messages from DEBUG to TRACE1

* Lift the restriction on using asynchronous websockets connections but having

an idle timeout

  1. … 8 more files in changeset.
avoid duplication of APR_HOOK_LINK invocations

Follow-up to r1546759: Fix compilation when exception hooks aren't enabled.

Add suspend_connection and resume_connection hooks to notify modules

when the thread/connection relationship changes. (Currently implemented

only for the Event MPM; should be implemented for all async MPMs.)

  1. … 4 more files in changeset.
Fix potential rejection of valid MaxMemFree and ThreadStackSize


Submitted by: Mike Rumph <mike.rumph>

Reviewed by: trawick

  1. … 1 more file in changeset.
Fold in Eric Covener's socket callback

  1. … 4 more files in changeset.
The Pidfile directive and ap_log_pid()/ap_remove_pid()/ap_read_pid()

now respect DefaultRuntimeDir

  1. … 6 more files in changeset.
Revert r1294936 (Jeff's revert) and fix NetWare / Win32 build.

Added the missing AP_DECLARE* decorations for the function

implementations and variables.

  1. … 5 more files in changeset.
Add lots of unique tags to error log messages

  1. … 172 more files in changeset.
Folloup on r1201158: New MaxMemFree was meant

to be 2048, not 4096.

Set MaxMemFree 2048 by default

  1. … 3 more files in changeset.
end-generation hook: Fix false notification of end-of-generation for

temporary intervals with no active MPM children.

  1. … 3 more files in changeset.
Call apr_random_after_fork() manually in the child processes because the MPMs

use plain fork() and not apr_proc_fork().

Also add some workaround for APR not changing the RNG state in the parent.

  1. … 2 more files in changeset.
Consistently use base 10 for numbers when parsing config options. It may be

confusing to the user if some directives treat a number with leading zero as

octal while most don't.

  1. … 4 more files in changeset.
Add -D DUMP_RUN_CFG option to dump some configuration items

from the parsed (or default) config. This is useful for init scripts that

need to setup temporary directories and permissions, for example if those

temporary directories are located on a ram disk.

  1. … 10 more files in changeset.