mpm_common.c

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

Changeset 1746189 is being indexed.

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:

<CALK=YjN9HfThP_k_rF9iJPcUhcQk9sNOaDPxZNG+HcJNWS4ZAQ@mail.gmail.com>

  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 gmail.com>, Edward Lu <Chaosed0 gmail.com>

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

directives.

Submitted by: Mike Rumph <mike.rumph oracle.com>

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

warnings.

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

everywhere.

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.