Checkout Tools
  • last updated 4 hours ago
Constraints: committers
Constraints: files
Constraints: dates

Changeset 1734656 is being indexed.

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.
Export ap_max_mem_free, needed by r1178079, as pointed out by Gregg L. Smith

  1. … 2 more files in changeset.
* server/mpm_common.c (ap_core_child_status): Allocate the geninfo,

unused_geninfo ring heads from the heap; fixing gcc aliasing


Log the deprecation warning at level info, not warn

  1. … 3 more files in changeset.
Introduce ap_(get|set)_core_module_config() functions/macros and use them


We know that the core module has module_index 0. Therefore we can save

some pointer operations in ap_get_module_config(cv, &core_module) and

ap_set_module_config(cv, &core_module, val). As these are called rather often,

this may actually have some (small) measurable effect.

  1. … 42 more files in changeset.
disable hook probes for our two hooks which have no args

Reviewed by: jim

  1. … 1 more file in changeset.
Add child_status hook for tracking creation/termination of MPM child

processes. Add end_generation hook for notification when the last

MPM child of a generation exits.

end_generation is implemented completely by core using the

child_status hook run by the MPM.

simple and mpmt_os2 MPMs don't currently run the child_status

hook, so neither hook is invoked with those MPMs.

  1. … 11 more files in changeset.
Abort if the MPM is changed across restart.

A new MPM can't be expected to manage the existing state,

particularly if that includes processes from the previous


  1. … 1 more file in changeset.
Simplify the interface to ap_reclaim_child_processes() and

ap_relieve_child_processes(): instead of requiring the MPM

to implement an otherwise-useless hook, just use a callback


As I don't expect third-party MPM devs are following our day

to day progress, the API changes are considered part of

yesterday's MMN change.

  1. … 7 more files in changeset.