3b11e6ec1c5273d6a8968460db650e7ca99c49c0 1601185 |
|
08-Jun-2014 |
ylavic |
mpm_event[opt]: Send the SSL close notify alert when the KeepAliveTimeout
expires. PR54998. |
035daa7b9681793e64c95b5fa79afb0141847ce5 1599852 |
|
04-Jun-2014 |
jailletc36 |
Fix URL in doxygen comment.
Previous link was broken. |
121358bb5ead079e3f840df4c42b5323b0779670 1572905 |
|
28-Feb-2014 |
ylavic |
core: avoid a double apr_time_now() call on the first succeeding read. |
943016cae7a40f689cc0b65fd8cf8d4250a21352 1565657 |
|
07-Feb-2014 |
jim |
Add in the concept of "slave" connections...
Allows for several "connections" all resulting in
a single real connection that talks to the network.
Right now, nothing uses this though. |
4f37d4a111f115a982850f68fe4b898cb089fa5a 1203708 |
|
18-Nov-2011 |
gregames |
garbage C's in server-status and extra child processes with async lingering
close support in Event. these are set by the listener due to a residual
c->sbh for a worker thread no longer associated with the connection.
the associated worker threads are really idle and blocked in
ap_queue_pop_something and will serve new work normally. but since they
are marked as SERVER_CLOSING rather than SERVER_READY in the scoreboard,
the parent process thinks they are busy and forks extra children.
reproduction recipe: start Event with server-status enabled. hit
localhost/server-status?refresh=5 and watch the C's trail behind the lone W. |
b44ddab21bd6e44ba3c03f7ae8ed08dd23b68b48 1137358 |
|
19-Jun-2011 |
sf |
Some improvements for handling of many connections for MPM event:
- Process lingering close asynchronously instead of tying up worker threads
(based on patch by Jeff Trawick).
- If the number of connections of a process is above
threads_per_child + WORKER_OVERCOMMIT * (idle_workers - 1)
(WORKER_OVERCOMMIT is fixed at 2, at the moment), or if all workers are busy,
don't accept new connections in that process. Such a dynamic connection limit
is necessary because we may have both async and non-async (ssl) connections.
WORKER_OVERCOMMIT should be a config option.
- Don't count idle workers of not-accepting processes against MinSpareThreads,
so that the parent will spawn new processes when necessary.
- If we receive a keep-alive request while all workers are busy, don't block
but close the connection immediately so that the client will re-connect to a
different process.
Related changes:
- Log what is going on at trace loglevels.
- Remove the bypass_push poll type flag, this code cannot be hit anymore
(if it ever could?).
- Add some macro helpers for dealing with timeout queues. |
9bec939825399ac2816ea0d912d2e3c3b2ed91f4 1135153 |
|
13-Jun-2011 |
sf |
Introduce new function ap_get_conn_socket() to access the socket of
a connection |
7184de27ec1d62a83c41cdeac0953ca9fd661e8c 1132781 |
|
06-Jun-2011 |
sf |
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. |
5eabcf9bc3875db35c0e62a2202d63768c10168d 923418 |
|
15-Mar-2010 |
sf |
core: shorten the wait time in ap_lingering_close() if the
"short-lingering-close" connection note is set.
mod_reqtimeout: Instead of setting c->aborted, use the "short-lingering-close"
connection note to shut down the connection quickly while still giving the
client a chance to receive the error message. |
dd028aa8111afb6534fece555e8c2d408894671e 757853 |
|
24-Mar-2009 |
trawick |
Introduce a new set of APIs to allow MPMs to be proper modules instead
of integral parts which share global variables, functions, and macros
with the rest of httpd.
Converted now:
prefork, worker, event, simple, WinNT*
*WinNT hasn't been built or tested, and relies on a hack to include the
WinNT mpm.h to disable Unixy MPM support routines in mpm_common.c |
d6e81217d873dc3b87fc4ffa5fbac2fad4191a15 645455 |
|
07-Apr-2008 |
pquerna |
Remove all references to CORE_PRIVATE. |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
3d81f57512275ca06a60a9bcbd23c1f8b429fdf2 395228 |
|
19-Apr-2006 |
colm |
Update the copyright year in all .c, .h and .xml files |
e8f95a682820a599fe41b22977010636be5c2717 332306 |
|
10-Nov-2005 |
jim |
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines |
43c3e6a4b559b76b750c245ee95e2782c15b4296 332305 |
|
10-Nov-2005 |
jim |
No functional change: simple detabbing of indented code. |
75e36a132c9f876471181ab888782674fb473cb2 291454 |
|
25-Sep-2005 |
jorton |
* server/connection.c (ap_lingering_close): Cleanup; no functional change. |
ce071b0819ad0d88946a6ffcff099ecc89be7778 291452 |
|
25-Sep-2005 |
jorton |
* server/connection.c (ap_lingering_close): Fix lingering close to
really match the 1.3 behaviour: read from the client for up to ~30
seconds in total. Current behaviour will attempt only 15 read() calls
then give up.
PR: 35292 |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
a970484c3b3093942e115d52ce408fc06891c17f 102800 |
|
28-Feb-2004 |
jorton |
* server/connection.c (ap_flush_conn): Fix typo. |
ca858ab6990f4b0d8e1935da755a0d3208c68320 102793 |
|
28-Feb-2004 |
madhum |
Send the 'Close Alert' message to the peer upon closing a SSL session. This
required creating a new EOC (End-Of-Connection) bucket type to notify mod_ssl
that the connection is about to be closed.
Reviewed by: Joe Orton, Justin Erenkrantz |
6de8046f8f7e07cd83895a528df25d977e502c76 102619 |
|
09-Feb-2004 |
nd |
fix name of The Apache Software Foundation |
2af7ecf8c1589908aac793c154942d3cb3f6e492 102589 |
|
08-Feb-2004 |
nd |
fix copyright dates according to the first check in |
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dc 102525 |
|
06-Feb-2004 |
nd |
apply Apache License, Version 2.0 |
26a4456dd6f1a5d7d7fff766551461a578687c4a 102135 |
|
01-Jan-2004 |
nd |
update license to 2004. |
1fbf6ba0f5207e6637b49f9a9dfcc779bbe952a9 101154 |
|
03-Sep-2003 |
trawick |
switch to APR 1.0 API (which is still in flux)
because of the changes to the argument lists of apr_mmap_dup and apr_socket_create,
2.1-dev won't build with apr and apr-util's 0.9 branch anymore |
033b9579e17dc6dfe6b3f2b9817168af4812c992 98860 |
|
01-Mar-2003 |
stas |
Apache hooks return int: so s/apr_status_t/int/
PR:
Obtained from:
Submitted by:
Reviewed by: trawick |
bd9870ce137a3aec6011e9b1440c26db3bfe07ec 98798 |
|
26-Feb-2003 |
stas |
check the return value of ap_run_pre_connection(). So if the
pre_connection phase fails (without setting c->aborted)
ap_run_process_connection is not executed.
PR:
Obtained from:
Submitted by:
Reviewed by: trawick, jim |
33bdcae1f7a1a65e351dda2a766a0cf28b1e695d 98573 |
|
03-Feb-2003 |
nd |
finished that boring job:
update license to 2003.
Happy New Year! ;-)) |
9179fa90e821c964d10f28b97fc6acee776af7cf 96057 |
|
15-Jul-2002 |
wrowe |
http occurances to update for apr_socket_opt_get/set |
c02a4caf7d7ea2ba7c5b230427b0a9776040c86b 96055 |
|
15-Jul-2002 |
wrowe |
Timeout/time fixes |
2fc50921b88defeb7127985dfe4b4130175e069e 94304 |
|
29-Mar-2002 |
jwoolley |
BUCKET FREELISTS
Add an allocator-passing mechanism throughout the bucket brigades API.
From Apache's standpoint, the apr_bucket_alloc_t* used throughout a given
connection is stored in the conn_rec by the create_connection hook. That
means it's the MPM's job to optimize recycling of apr_bucket_alloc_t's --
the MPM must ensure that no two threads can ever use the same one at the
same time, for instance. |
09c2b80f379c1976264148c658fad9ce92bd1a2b 94020 |
|
19-Mar-2002 |
ianh |
forgot the actual change
PR:
Obtained from:
Submitted by:
Reviewed by: |
bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986 93918 |
|
13-Mar-2002 |
fielding |
Update our copyright for this year. |
2261031aa94be82d7e6b1b8c367afc1b282317f5 93717 |
|
05-Mar-2002 |
ianh |
Sander's Stylistic Submission
(de-tab)
PR:
Obtained from:
Submitted by:
Reviewed by: |
affe4f2ea22fca7ce90166044af0c5fdba608ec3 93259 |
|
05-Feb-2002 |
rbb |
Remove the install_transport_filters hook. The same function can be
acheived with the pre_connection hook. I have added the socket to the
pre_connection phase to make this possible.
Reviewed by: Bill Stoddard |
19a01f46d8da4d6e80ddd54c99d50e3bce5217cb 93171 |
|
01-Feb-2002 |
stoddard |
Reintroduce the create_connection hook. This hook is required to enable
modules to completely take over all network i/o from the core. |
4fbb89a070c82e489830233bde6bc78ddf179978 93087 |
|
29-Jan-2002 |
stoddard |
This patch restores most of Ryan's patch (11/12/2001) to remove the
client_socket from the conn_rec. Diffs from Ryan's patch include:
- rename the create_connection hook to install_transport_filters
- move the point of invocation of the hook till after the call to
after ap_update_vhost_given_ip to enable the hook to use vhost
config info in its decision making. |
b393bdb2e1eabbe4b9b37c5eaeeeca799b2eb324 93050 |
|
27-Jan-2002 |
stoddard |
Remove the create_connection hook and put the client_socket back into the
conn_rec. The create_connection_hook has a design flaw that prevents it
from making decisions based on vhost information. |
2d81b31d4235d058b2249c2062cb5dd9a2dd37a2 92580 |
|
23-Dec-2001 |
stoddard |
The connection can be aborted in the preconnection hook. If that happens,
there is no need to run the process_connection hook. |
ca47a2b6bcea23e8af185c68f256dcbbfd2a0f9d 92512 |
|
18-Dec-2001 |
trawick |
Change core code to allow an MPM to set hard thread/server
limits at startup. |
d7d24786c80ad1ae337b916a0a44b2a7b8fcb54d 91968 |
|
15-Nov-2001 |
rbb |
Pull lingering close out of the pool cleanup phase. This was causing too
many bugs. Instead, it is called where it used to be called. I have
abstracted some of the logic out of the lingering close so that it gets
the socket from the connection using the core's conn_config vector. This
is in anticipation of a change to use a hook for the lingering close,
which I hope to do soon. |
cc5e9d68a9cbb9fe844aed4b2f815eb09050d06f 91913 |
|
13-Nov-2001 |
rbb |
Add the server_rec argument back to the create_connection hook.
Submitted by: Greg Stein |
5f9dbff2fa88832379f94c32530d0e37adc31d00 91906 |
|
13-Nov-2001 |
rbb |
Back out my last patch. The logic to add sockets to pollsets is back in
the MPM |
391d2b2fc51ade3f07bc7e8054775096216d06ce 91902 |
|
13-Nov-2001 |
rbb |
Whoops, wrong variable. |
74b567cef753b0ec4b69b56a2f1dd20813b28f8d 91901 |
|
13-Nov-2001 |
rbb |
I accidentally removed these lines. Thank to Greg for catching this. |
f537895b91db96b19c300dfd4c65dd208c31b66a 91899 |
|
13-Nov-2001 |
rbb |
This allows modules to add socket descriptors to the pollset. I have
only added this to the perfork MPM, and the others work without it.
Tomorrow I will add it to the other MPMs. |
2f34d0be7ce9192d3b6b41bfa7493562ef4ac185 91890 |
|
13-Nov-2001 |
rbb |
Cleanup some code that was created during the abstration. This basically
takes the old ap_new_connection, and puts into the new core_create_conn
function. There is no good reason to have two functions to do this. |
e6cc28a5eb3371ba0c38e941855e71ff0054f50e 91887 |
|
13-Nov-2001 |
rbb |
Begin to abstract out the underlying transport layer.
The first step is to remove the socket from the conn_rec,
the server now lives in a context that is passed to the
core's input and output filters. This forces us to be very
careful when adding calls that use the socket directly,
because the socket isn't available in most locations. |
225433c8e14811eb809ec6c8ad3d797b7098a0a9 91839 |
|
10-Nov-2001 |
rbb |
Fix the Windows MPM. Windows doesn't always use the lingering close
function. If it can re-use the socket, we are better off not calling
the function. To fix this, we re-expose the lingering_close function,
and we allow the MPM to remove the cleanup. |
53509ebdb0660b47696e64b8214b73818d339553 91832 |
|
10-Nov-2001 |
rbb |
Remove ap_lingering_close from all of the MPMs. This is now done as
a cleanup registered with the connection_pool. I have also turned
ap_lingering_close into a static function, because it is only used
in connection.c. This is the next step to consolidating all of the
socket function calls. ap_lingering_close will only be added if the
core is dealing with a standard socket. |
8ab4a0d3029dfc953115cdf90c39942267977d69 89809 |
|
31-Jul-2001 |
stoddard |
The read() in apr_recv() would always be called first and return EAGAIN.
This one change to eliminate the read unless there are really bytes to read
is good for a 7 to 9% performance boost on AIX. |
ec020ca384efb30d501a5af796ddc3bb237d7b8f 89542 |
|
12-Jul-2001 |
gregames |
scratch an old itch - give lingering close its own state in the scoreboard.
clean up SERVER_ACCEPTING and SERVER_QUEUEING (never set) while I'm at it. |
1702068419e130e99f021228659597c1ec658edc 89078 |
|
11-May-2001 |
chuck |
Add the AP_DECLARE()/AP_CORE_DECLARE macros on the return types of
functions used by mod_proxy for export in DLL
Submitted by: Ian Holsman <IanH@cnet.com>
Reviewed by: Chuck murcko |
141b1a93f508248cbc0e9a124cc38041eb3e2562 88449 |
|
04-Mar-2001 |
rbb |
Move more code from the http module into the core server. This
is core code, basically the default handler, the default input
and output filters, and all of the core configuration directives.
All of this code is required in order for the server to work, with or
without HTTP. The server is closer to working without the HTTP
module, although there is still more to do.
I tried to fix Windows, but somebody should probably make sure I did
it correctly. |
b99dbaab171d91e1b664397cc40e039d0c087c65 88184 |
|
16-Feb-2001 |
fielding |
Update copyright to 2001 |
022c6e1595f84c334c460dd9027a501bd450a992 88168 |
|
14-Feb-2001 |
stoddard |
Move the call to set the socket timeout outside the loop.
ve : |
b17d2b153433e4edc676218f3ef2e0a9f551592e 88167 |
|
14-Feb-2001 |
stoddard |
Fix lingering close (and make it more efficient). We were blocking on
apr_read() for 30 seconds for each lingering close. What we want to
do is block for 2 seconds. If we do not read any bytes from the client
in that time, close the connection. If we do read bytes, then wait 2
more seconds to see if more arrive, etc. Repeat for MAX_SECS_TO_LINGER
if needed.
This should clear the way to get 2.0 running on apache.org! |
3c25660b5bd894a57a90a8fb78d47e2c489ba581 88151 |
|
14-Feb-2001 |
stoddard |
Start getting extended status working again. |
e587bf8f0a93221bd414fd9fe30b1196d397c535 88125 |
|
13-Feb-2001 |
stoddard |
This is the wrong place to mark the server ready. Servers need to be marked ready
in the MPM -after- lingering close processing. This could be playing havoc with
perform_idle_server_maintenance. |
78f2608a1583b3cb409e12be701392ad1a929653 88117 |
|
12-Feb-2001 |
rbb |
Begin to move the code that updates the child status out of the MPMs and
into the main-line code. This ensures that all MPMs can easily forget
about updating their status. |
024cd9589e52cf11ce765dfddb5b5f0c6e421a48 88061 |
|
10-Feb-2001 |
gstein |
*) continued header revamping
*) torch some headers (and some libs) from the autoconf stuff |
066877f1a045103acfdd376d48cdd473c33f409b 88019 |
|
08-Feb-2001 |
dougm |
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by: |
3568de757bac0b47256647504c186d17ca272f85 87949 |
|
01-Feb-2001 |
rbb |
Bring mod_status for 2.0 back in line with mod_status for 1.3. This is
basically a straight port of the 1.3 module to 2.0. The MPMs need to be
modified a bit to work with mod_status, but prefork, mpmt_pthread, and
dexter have already been changed. I will fix perchild tonight. There
is a lot of common code that can be abstracted, and there seems to be a
small bug with regard to what mpmt_pthread and dexter report as current
connections. ExtendedStatus does work again, although until the bug
mentioned above is fixed, it isn't as useful on mpmt_pthread and dexter.
Next week, I will look at allowing other modules to add data to the
STATUS page and possibly to the scoreboard itself. |
6057ebe10a85c95c601c0cd1ff69fdb795dc3309 87947 |
|
01-Feb-2001 |
trawick |
handle a TCP connection reset between the time we accept the connection
and when apr_get_sockaddr() does getsockname() or getpeername()
this change will be rolled into the other MPMs later |
803f1bddbc1e3481e6d144fab99b75beaf25149b 87748 |
|
19-Jan-2001 |
wrowe |
The fast fix to get FirstBill back out of the gate. It brings up an
issue I'll address to the list. |
b7bd7f847e2c0dec57a8c19fe74c1d4fc883c335 87739 |
|
19-Jan-2001 |
wrowe |
By popular review |
b980ad7fdc218b4855cde9f75a747527f50c554d 87731 |
|
19-Jan-2001 |
wrowe |
The big change. This is part 3 of the apr-util symbols rename, please
see the first commit of srclib/apr-util/include (cvs apr-util/include)
for the quick glance at symbols changed. |
17219ce8b2c3c14018ed51b4d56f4a05e218715b 87567 |
|
02-Jan-2001 |
rbb |
Simplify the lingering close logic a bit. Doesn't actually change
anything, this just removes a duplicate call to ap_flush_conn. |
91644a5f4d3e992dc208304b50e80bbb236fca89 87342 |
|
14-Dec-2000 |
trawick |
The local_addr and remote_addr fields in the conn_rec are now
apr_sockaddr_t * instead of sockaddr_in. This is a small step
towards IPv6 support. |
8ef805c764cbf0edbe9b4e6f5fed3baf50e224d1 87181 |
|
04-Dec-2000 |
trawick |
Get rid of ap_new_apr_connection(). ap_new_connection() now has
fewer parameters: the local and remote socket addresses were removed
from the parameter list because all required information is available
via the APR socket.
I haven't tested the most important part -- the WinNT MPM changes
-- but it compiles and it looks okay :) If the WinNT MPM works on
Win98 these days let me know. |
2d9bb62ad368a5cf41c1e9d8126ff425f009ffc0 87147 |
|
01-Dec-2000 |
trawick |
Stop referencing apr_get_socket_inaddr(), apr_get_remote_name(), and
apr_get_local_name(). They have been removed. |
382fa07a63096c4a1aabfed36433ea5ac9c40ad0 87050 |
|
21-Nov-2000 |
trawick |
updates to changed interfaces to apr_set_port(), apr_get_port(),
apr_set_ipaddr(), and apr_get_ipaddr() |
57b0be0ce7993ca2360e1974a234f7b945d6cf9d 87006 |
|
18-Nov-2000 |
wrowe |
Clean up some timeout arg warnings |
74b39333600dee3260355ad3a06e36ef6c61c8f1 86890 |
|
09-Nov-2000 |
dreid |
Change the code to reflect the recent API changes...
Alter http_vhost.c to use the new apr_get_inaddr fucntion. Old code is still
there just in case it breaks. can someone check it who knows this stuff? |
52feb4fc246900d2999f6a038c5a750d23bd544b 86878 |
|
09-Nov-2000 |
rbb |
Remove BUFF from the main server. :-) The buff code needs to remain as
a part of the server until the proxy is purged of BUFF however. |
f92e51e1951be0ef34da086bdff019d8ddc71c63 86857 |
|
07-Nov-2000 |
rbb |
Convert a lot of apr_ssize_t to apr_size_t. We don't ever accept or return
signed values in these integers, and we return the error codes directly,
so we should always report the number of bytes read/written correctly. If
we have an error, that is 0 bytes. If that is true, then using signed
values doesn't make any sense. |
8b9bb89b89760ab2fa063b4f4ed47ffb48ddb581 86817 |
|
03-Nov-2000 |
dreid |
We don't really want to fool around with socket structures if we don't have to,
and in this case we can get the ip address directly from the socket. This
should mean that if we add more protocol support we don't have to worry about
this. No doubt this is the first of many such changes... |
e6b1b09e6f6961d92eaaa58b62a88a3a66586c0e 86785 |
|
01-Nov-2000 |
trawick |
Fix a buglet in the APR-ization of ap_lingering_close() -- use APR_SO_TIMEOUT
instead of BO_TIMEOUT. (We were actually setting a different socket option.) |
0a637daa6770f5b36c85e3329e32a7fd75ca591f 86709 |
|
23-Oct-2000 |
rbb |
Make lingering close access the socket directly, instead of relying on
BUFF. This has been tested, but all we can determine is that it doesn't
fail, not that it works. This needs to be tested much better. |
1f979ad6158528c21ac53ded62fe516670227e37 86700 |
|
22-Oct-2000 |
trawick |
Get rid of a couple of buff-isms -- setting the B_EOUT flag in a couple
of places and doing ap_bread() in ap_lingering_close. |
1c0349d21f49f76993f0db8e56a4352269840a98 86666 |
|
19-Oct-2000 |
rbb |
Change some of the BUFF calls to direct calls to the socket. |
0ff36975b1f5fef1ccc0429bb76bcdaccd5d122b 86651 |
|
18-Oct-2000 |
rbb |
This begins to remove BUFF from the server. The idea is to go very slowly
with this. To begin with, we store both the socket and the BUFF in the
conn_rec. Functions are free to use which ever they want, in the end all
of the data goes to the same place. This modifies all of the MPMs except
Windows. All of the Unix MPMs are working, but the others need to be
tested. |
3d96ee83babeec32482c9082c9426340cee8c44d 86609 |
|
16-Oct-2000 |
wrowe |
Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbols
for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper)
and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE.
All _VAR_ flavors changes to _DATA to be absolutely clear.
Thank you Greg, for the most obvious suggestion. |
52dc1928d4ced31d1a35bceea742b4cb0e732451 86412 |
|
06-Oct-2000 |
rbb |
Add the first draft of the http_filter. In time this filter will split
the bucket brigade between the headers and the body. Right now it just
converts \r\n to \n\0. |
5fac642ef2ee110540c3a391e4cf1d166ba57d0f 86403 |
|
05-Oct-2000 |
trawick |
Add a bit of infrastructure which will be needed for input filtering:
1) separate filter lists hanging off the r and the c
requests start off with the same filter list as the connection
the input filter list is not initialized for subrequests
internal redirects start off with the same filter list as the
connection
2) AddInputFilter directive (blatant rip-off of Ryan's AddOutputFilter
directive); as with AddOutputFilter, the network is implicitly to the
right of the specified filter list; this may not be the most
intuitive way to specify the filters; not sure yet |
d025a1bfef81af5c3a1e784762bf27971114b6e3 86401 |
|
05-Oct-2000 |
trawick |
Now that we have ap_add_input_filter(), rename ap_add_filter() to
ap_add_output_filter(). |
c43223fef00e5fa98a54c37a21175ff788b76f43 86392 |
|
05-Oct-2000 |
rbb |
Connection oriented filters are now stored in the conn_rec instead of the
request_rec. This means that a conn_rec must be supplied when calling
ap_add_filter. The reason for this change is that we need to be able to
add the core_filter (whether or SSL or not) before we try to read the
request. This way, if a request fails, we can actually send the error
page back to the client. With this change, we add the core filter to the
conn_rec during the pre-connection phase.
Submitted by: Ryan Bloom, Jeff Trawick, and Greg Ames |
34883dbfd7eb43a4bd63504495b84eb6514634c2 86364 |
|
02-Oct-2000 |
rbb |
Move where the CORE_IN filter is added to the server. We used to do this
in ap_new_connection, but that is bogus, because then other modules can't
put their own filter in. Now, we do this in a new pre-connection hook
function. Later, we will want to add some checking to make sure that this
is really an HTTP request that we are adding the filter for. |
91f8fecd254fcdfcde4607b28ee192276c29c1a2 86359 |
|
02-Oct-2000 |
rbb |
Implement input filtering. This is definately not completely correct, but
it is a good first step. It is possible to add filters when reading from
the client with this change. |
10a4cdd68ef1ca0e54af296fe1d08ac00150c90b 86008 |
|
06-Aug-2000 |
wrowe |
Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
see src/lib/apr/apr_compat.h for most details.
Also a few minor nits to get Win32 to build.
PR:
Obtained from:
Submitted by:
Reviewed by: |
1ccd992d37d62c8cb2056126f2234f64ec189bfd 85976 |
|
02-Aug-2000 |
dougm |
prefix libapr functions and types with apr_ |
b6055b7832a0e4d0818416252fff5925aaebae4b 85867 |
|
21-Jul-2000 |
rbb |
Move all APR functions related to strings to their own directory, and
create a new header for those functions. This is the first step to
removing the apr/lib directory completely, and moving those files/functions
to descriptive directories. |
9cb787a8a3d06704ab9c51ffd51525b364151182 85860 |
|
18-Jul-2000 |
trawick |
Fix some bad ap_log_error() invocations. Comment on a bad
ap_log_rerror() invocation.
Almost all of this is in code never compiled. |
e1b826dc4fc2fa9c14065b181ceaf88810e511cf 85700 |
|
26-Jun-2000 |
trawick |
Remove const from ap_socket_t parameters on APR functions so that
APR can modify the ap_socket_t as it sees fit. It may choose to
modify the ap_socket_t on functions which only read from the ap_socket_t
conceptually.
Note: http_connection::ap_new_apr_connection() passes its ap_socket_t
arg to one of the changed functions, so const was removed there also. |
4467f087235b69e978caee8ad8e16fe096229aa0 85626 |
|
20-Jun-2000 |
fielding |
Removed the pointless ap_is_aborted macro. |
de58096d6fafe97886e3e345c3c153adb7eb9dd6 85615 |
|
19-Jun-2000 |
ake |
Add notes field to conn_rec |
48d7c43629323c8d5ee9f7bd0d194de0a376b391 85558 |
|
13-Jun-2000 |
rbb |
Protect system header files with the appropriate macros. |
d4f1d9c1ff112a8ab9bee31f196973761329b236 85553 |
|
12-Jun-2000 |
rbb |
Clean up a big chunk of ap_config.h. This basically stops ap_config.h from
including any files. Because of this change, other files must include
their own headers. I also cleaned up a couple of other bugs in some
modules because I had to compile them all.
I expect this to break multiple platforms, but this will be fixed over time.
The massive configure cleanup is almost done. I will go through the files
one more time after this commit. |
36bb027ff0af9d285d15e9fac4fc956db6c33e94 85319 |
|
28-May-2000 |
wrowe |
PR:
Obtained from:
Submitted by:
Reviewed by:
Reverse out additional linkage argument from DECLARE_HOOK
and IMPLEMENT_HOOK macros. |
30c289e6bc6d28d210b21edd800ab2cfc78a8381 85309 |
|
27-May-2000 |
wrowe |
This patch corrects the issues from the AP_EXPORT and linkage
specification arguments to the ap_hooks.h declarations. As with
the APR_ and AP_ patches, API_VAR_EXPORT becomes API_EXPORT_VAR,
and MODULE_VAR_EXPORT becomes MODULE_EXPORT_VAR.
I will be happy to revert the inclusion of ap_config.h from
httpd.h if this bothers anyone. More individual modules need
to be patched if we do so.
The API_EXPORTs all moved into central storage in the ap_config.h
header. Without WIN32 or API_STATIC compile time declarations,
these macros remain no-ops.
This patch also moves the following data from http_main to http_config:
const char *ap_server_argv0;
const char *ap_server_root;
ap_array_header_t *ap_server_pre_read_config;
ap_array_header_t *ap_server_post_read_config;
ap_array_header_t *ap_server_config_defines;
And the following variables had already moved into ap_hooks.c:
ap_pool_t *g_pHookPool; (initialized now in http_config)
int g_bDebugHooks; (out of http_config)
const char *g_szCurrentHookName; (out of http_config)
The changes to http_main.c are in preparation for that module to
move out to a seperate .exe for win32. Other platforms will be
unaffected, outside of these changes. |
8009814046f28be53c9c61f101b51d15b2b29ce5 85194 |
|
11-May-2000 |
stoddard |
Create new function, ap_lingering_close(), which will explicitly do a lingering close
if USE_SO_LINGER is not defined. Move responsibility for closing connections out
of http_connection.c and into the MPMs. |
9600fbaec608409c65a5f7579d2283d22583fbf7 85193 |
|
11-May-2000 |
stoddard |
Exit connection processing normally on a graceful shutdown (which will allow
a lingering close where applicable). Set is_graceful in the winnt MPM. |
e84e041195c2640f2a864552a5ee7e89daeae054 85066 |
|
28-Apr-2000 |
dougm |
change ap_hook_pre_connection from VOID to RUN_ALL |
ff72a628571224579194f37cf8db96186ae889a5 85045 |
|
26-Apr-2000 |
dougm |
add AP_ prefix to *HOOK* macros |
404e2e1f8ad30c2d996f5fb6b3a9a4a4a14a004b 84963 |
|
14-Apr-2000 |
rbb |
Change ap_context_t to ap_pool_t. This compiles, runs, and serves pages
on Linux, but probably breaks somewhere. |
e2ec4edd3b3ed53ec41c68589291b34e7bb27e43 84951 |
|
13-Apr-2000 |
trawick |
Get lingering_close() working again. |
7e79e8fd53348f9fc6e8009a4a2522425ab6f08f 84878 |
|
31-Mar-2000 |
fielding |
Update to Apache Software License version 1.1 |
64185f9824e42f21ca7b9ae6c004484215c031a7 84725 |
|
10-Mar-2000 |
rbb |
Fix all the License issues. Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license |
2d71630471d1c23f0137309e3c3957c633ecbfd6 84531 |
|
28-Jan-2000 |
rbb |
Include ap_config.h before httpd.h, this ensures that AP_USE_HSREGEX is
defined correctly in all C files. |
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44c 84493 |
|
19-Jan-2000 |
rbb |
Finish the commits for the change in the header files. Basically, this hides
all of the Apache macros that modules don't need access to. This should
have been committed with the modules, but I wasn't paying attention to the
directory I was in when I ran the commit.
Submitted by: Manoj Kasichainula and Ryan Bloom |
0d281502553310060615306fb6ca92b2f4f97d7a 84128 |
|
16-Nov-1999 |
rbb |
Cleanup the ZZZ comments. Basically these used to mark places where APR
is needed. It is much easier to do this conversion by hand than by
searching for old comments, so they are going away now. |
d9b0b0c84558f0da63c38a1b2533ebab64ff48f1 84040 |
|
27-Oct-1999 |
manoj |
ap_bflush and ap_bclose now return ap_status_t error codes instead of
returning -1 and setting errno. |
acf57b44f2f61797023f7e9c2606cebf07f73d08 84029 |
|
24-Oct-1999 |
bjh |
Enhancements for APR network_io. Adds separate local/remote access methods for
a socket's port, IP address and sockaddr_in.
Updates for Apache code to use these, allowing the correct IP address of
clients to be logged. |
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557b 83982 |
|
13-Oct-1999 |
manoj |
Add a connection status table to replace the old function of the
scoreboard. It allows MPMs to implement their own mechanism for the
status table and allows any module to add its own per-connection status
entries. |
40c2964792533dfeedca739fa5617416d5f644e7 83969 |
|
12-Oct-1999 |
martin |
Fix typos |
b4c8a80f7dbfc9b56dbe03bdc28f0b5eb5f23697 83852 |
|
31-Aug-1999 |
rbb |
Changed pools to contexts. Tested with prefork and pthread mpm's. I'll
check this out tomorrow and make sure everything was checked in correctly. |
1f7304049276b89d748693b713f84e4b69acac18 83836 |
|
28-Aug-1999 |
rse |
Make ``configure --with-option=devel'' under
GCC 2.95.1 happy by avoiding various warnings... |
0c383b0b8c502f6be34c08a67832a357ce1c4e6d 83662 |
|
13-Aug-1999 |
manoj |
Add a connection ID to conn_rec. It uniquely identifies a connection at
any instant in time. It's not very well tested yet. |
c0034020aeae93c2d33b65dfdc5fa9eda7c24370 83587 |
|
06-Aug-1999 |
dgaudet |
merge the differences in apache-1.3 from tag apache-apr-merge-3 up
to mpm-merge-1 onto the mpm tree
prior to the merge, the mpm tree was tagged with apache-1_3-merge-1-pre
and after the merge, the mpm tree will be tagged with apache-1_3-merge-1-post
note: none of htdocs/manual is present in mpm at this point. |
1c8b2c58dbb2bb16b09ff7af4be2b67c18b8e309 83581 |
|
05-Aug-1999 |
manoj |
Take child_num and thread_num out of conn_rec. They aren't used anywhere
anymore, and conn_rec is the wrong place for them. |
ff0728c35f7a837e2b19674b7a22436daa8dee14 83546 |
|
31-Jul-1999 |
ben |
Break out the hook implementations into three kinds, thus avoiding null macro
arguments. Gates made me do it! |
07afa9bf546b1619bb1fe7f7862f95e0c7e5abf3 83516 |
|
27-Jul-1999 |
ben |
Another hook (I won't be upset if someone else wants to do some!). |
4a716d38a80877d4dac81d136c41a39097232b00 83488 |
|
23-Jul-1999 |
ben |
Actually, we should always close the connection when it is finished. |
3d6cb8c6ae5dec73fb9bba7e26fdec710aa44328 83486 |
|
22-Jul-1999 |
ben |
And with one bound, he was free! This seemingly minor change allows modules
to take over connection processing, thus making Apache multiprotocol. Woo! |
232b04163cc30106ad8ebc1e4ef58c4c27fa1c78 83451 |
|
11-Jul-1999 |
ben |
Make run_all symbolic. |
f7a13647585dc9adb86b516b3075d2ff0a45bb0d 83440 |
|
07-Jul-1999 |
martin |
Sorry, but using C comments in place of C++ comments
makes life for me and my compiler much easier. |
fd5a10519c6cebaa0b5b80bc23ae0c91d9779753 83435 |
|
06-Jul-1999 |
ben |
More hooky stuff. |
846f41829dcb5d277622713de4eddbaa3cd8fb2a 83434 |
|
05-Jul-1999 |
ben |
Strawman hooks implementation (beginning of). |
3133e3c2cc6f7890425e760f1550690160f912ae 83422 |
|
02-Jul-1999 |
manoj |
Use ap_new_connection in pthread MPM. This required adding an argument
to ap_new_connection for now: thread_num. |
6dfd8d3d42b28c3e2af5dd8778767cf5e98c28a9 83398 |
|
29-Jun-1999 |
ben |
New API for I/O layering, and dependency updates. |
2434907cae1e0a53dd7af6828d56d643d98ee5e1 83355 |
|
21-Jun-1999 |
dgaudet |
ap_mpm_graceful_stop -> ap_graceful_stop_signalled |
9ace8908ca63d3368da094c96b5acf4e037bedab 83350 |
|
19-Jun-1999 |
ben |
Compile on FreeBSD. |
113bba7f14e8451c53a2a231bf8b3a890cee9049 83349 |
|
19-Jun-1999 |
dgaudet |
I'm sure this is wrong... but it's my start. i/o layering. Lots of stuff
disabled/still to be implemented. This served up a few static requests. |
7f235c0d101d71224c8e498ac8f7fde1f98596c7 83343 |
|
18-Jun-1999 |
dgaudet |
Initial revision |