1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-23 22:49:01 +03:00
Commit Graph

10391 Commits

Author SHA1 Message Date
Jacob Champion
b05388b5e5 ssl_util.c: add APLOGNOs
Start from 10027 to match the current trunk (r1791845), which will be
merged into shortly.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/trunk-openssl-threadid@1791848 13f79535-47bb-0310-9956-ffa450edef68
2017-04-19 02:38:20 +00:00
Jacob Champion
bac77f2026 ssl_util.c: log which threadid callback is in use
This should help during testing and debugging. Use APLOG_NOTICE for now,
until we fix PR60999, so that people can actually see the log message.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/trunk-openssl-threadid@1791847 13f79535-47bb-0310-9956-ffa450edef68
2017-04-19 02:23:48 +00:00
Jacob Champion
e8c348af4a PR60947: try to warn affected users...
...but at the moment, this won't actually get logged unless you're
running in debug mode, due to an unrelated bug (PR60999).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/trunk-openssl-threadid@1791733 13f79535-47bb-0310-9956-ffa450edef68
2017-04-18 00:19:34 +00:00
Jacob Champion
7b2bdcea91 PR60947: avoid CRYPTO_THREADID_set_callback() if possible
CRYPTO_THREADID_set_callback() is write-once, so if mod_ssl is unloaded
and reloaded into a different address, we'll crash if OpenSSL wasn't
also unloaded and reloaded at the same time. This can happen if another
module or library is using OpenSSL as well.

- OpenSSL 1.1.0 isn't affected.
- Certain platforms (Windows, BeOS, and POSIX-compliant systems) can
  make use of the default THREADID callback in OpenSSL 1.0.x.
- If the deprecated CRYPTO_set_id_callback() is available, we can use it
  instead of CRYPTO_THREADID_set_callback().

Otherwise, we have to fall back to CRYPTO_THREADID_set_callback(), but
hopefully that applies to a small percentage of users at this point.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/trunk-openssl-threadid@1791732 13f79535-47bb-0310-9956-ffa450edef68
2017-04-18 00:19:32 +00:00
Jacob Champion
d06424f116 ssl_util.c: add a couple explanatory comments
Mark the things that are busted.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/trunk-openssl-threadid@1791731 13f79535-47bb-0310-9956-ffa450edef68
2017-04-18 00:19:30 +00:00
Jacob Champion
7f59369309 ssl_util.c: pull up duplicated code in ssl_util_thr_id()
Should make it easier to see what's going on in the next few changes.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/trunk-openssl-threadid@1791730 13f79535-47bb-0310-9956-ffa450edef68
2017-04-18 00:19:27 +00:00
Evgeny Kotkov
6299bcdaa7 mod_brotli: Comment on the default choice (0) for BROTLI_PARAM_LGBLOCK.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790860 13f79535-47bb-0310-9956-ffa450edef68
2017-04-10 15:27:58 +00:00
Stefan Eissing
96c374a162 On the trunk:
mod_http2: explicit int conversions to silence warnings in mod-h2 build.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790855 13f79535-47bb-0310-9956-ffa450edef68
2017-04-10 15:23:34 +00:00
Evgeny Kotkov
19b6640be2 mod_brotli: Fix a minor typo in the description of BrotliAlterETag
that has been referring to httpd 2.2.x.

There's no mod_brotli in 2.2.x.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790853 13f79535-47bb-0310-9956-ffa450edef68
2017-04-10 15:19:19 +00:00
Evgeny Kotkov
48b56e9e35 mod_brotli: Update makefile to allow using Brotli library >= 0.6.0.
The 0.6.0 version has just been released [1], and it contains the
necessary API required for mod_brotli.

[1] https://github.com/google/brotli/releases/tag/v0.6.0

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790852 13f79535-47bb-0310-9956-ffa450edef68
2017-04-10 15:17:07 +00:00
Stefan Eissing
5bded4caae On the trunk:
update after mod_http2 backport



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790850 13f79535-47bb-0310-9956-ffa450edef68
2017-04-10 15:14:22 +00:00
Stefan Eissing
bcae4f014a On the trunk:
mod_proxy_http2: no longer mapping link headers when preserve host is on.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790842 13f79535-47bb-0310-9956-ffa450edef68
2017-04-10 14:51:02 +00:00
Stefan Eissing
e643f77747 On the trunk:
mod_proxy_http2: 1 is true.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790827 13f79535-47bb-0310-9956-ffa450edef68
2017-04-10 13:23:03 +00:00
Stefan Eissing
8895bd2f8c On the trunk:
mod_proxy_http2: Reliability of reconnect handling improved.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790826 13f79535-47bb-0310-9956-ffa450edef68
2017-04-10 13:21:43 +00:00
Stefan Eissing
0e3a0a9314 On the turnk:
mod_http2: fixed two deadlocks introduced by removing nested mplx locking earlier.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790754 13f79535-47bb-0310-9956-ffa450edef68
2017-04-09 16:42:36 +00:00
Christophe Jaillet
99844e1c3a h2_worker.c is no more, so remove reference to this file.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790620 13f79535-47bb-0310-9956-ffa450edef68
2017-04-07 20:05:29 +00:00
Christophe Jaillet
8f446f8d0c Fix directive name in
(s/RemoteIPProxyProtocolDisableNetworks/RemoteIPProxyProtocolExceptions/)

Use cmd->cmd->name instead to be future proof.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790457 13f79535-47bb-0310-9956-ffa450edef68
2017-04-06 20:38:01 +00:00
Stefan Eissing
e4611af52b On the trunk:
mod_http2: less and more granular mutex use for improved performance.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790284 13f79535-47bb-0310-9956-ffa450edef68
2017-04-05 14:49:25 +00:00
Daniel Ruggeri
edc3965d1a Rename RemoteIPProxyProtocolDisableHosts to RemoteIPProxyProtocolExceptions
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790169 13f79535-47bb-0310-9956-ffa450edef68
2017-04-05 01:11:36 +00:00
Stefan Eissing
68b05db12e On the trunk:
mod_http2: code cleanup after eliminating nested locks, giving worker slots their own mutex.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790113 13f79535-47bb-0310-9956-ffa450edef68
2017-04-04 13:45:09 +00:00
Stefan Eissing
3076d44593 On the trunk:
mod_http2/mod_proxy_http2: less read attempts on bucket beams that already
     delivered EOS/headers. Fixed bug in re-attempting proxy request after 
     connection error.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790102 13f79535-47bb-0310-9956-ffa450edef68
2017-04-04 12:39:22 +00:00
Daniel Ruggeri
485f90e445 Update PROXY handling by removing Optional processing
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789800 13f79535-47bb-0310-9956-ffa450edef68
2017-04-01 13:51:44 +00:00
Stefan Eissing
045142819a On the trunk:
update after backport to 2.4.x



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789740 13f79535-47bb-0310-9956-ffa450edef68
2017-03-31 19:43:02 +00:00
Stefan Eissing
c1f02a1df5 On the trunk:
mod_http2: log tags updated



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789692 13f79535-47bb-0310-9956-ffa450edef68
2017-03-31 14:26:37 +00:00
Stefan Eissing
5440a7562b On the trunk:
mod_http2: move stuff from master connection to worker threads, increase spare slave connections, create output beams in worker when needed.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789535 13f79535-47bb-0310-9956-ffa450edef68
2017-03-30 16:05:06 +00:00
Stefan Eissing
f56036523c On the trunk:
mod_http2: fixed problem of forgotten requests when number of connections larger than number of workers. Some code refactor, threads now queued in slot order for vanity reasons, so that the segfaults are more likely at the top and not the bottom.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789520 13f79535-47bb-0310-9956-ffa450edef68
2017-03-30 12:51:52 +00:00
Stefan Eissing
0dc4a16fa3 On the trunk:
mod_http2: better performance, eliminated need for nested locks and thread privates.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789395 13f79535-47bb-0310-9956-ffa450edef68
2017-03-29 17:36:35 +00:00
Jim Jagielski
3751183add suggestion from ylavic
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789387 13f79535-47bb-0310-9956-ffa450edef68
2017-03-29 17:09:32 +00:00
Stefan Eissing
faa662844f On the trunk:
mod_http2: checking for required nghttp2 features to enabled dynamic input window resizing for streams (nghttp2 >= v1.5.0). Reporting as feature DWINS on startup.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789279 13f79535-47bb-0310-9956-ffa450edef68
2017-03-29 07:04:07 +00:00
Stefan Eissing
ac6721eb69 On the trunk:
mod_http2 after review by Christophe:
  * fix h2_fifo_peek to properly block
  * check peek return status while processing mplx queue



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789276 13f79535-47bb-0310-9956-ffa450edef68
2017-03-29 06:31:46 +00:00
Yann Ylavic
8df29cee95 Revert r1789221: real fix looks more subtle.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789224 13f79535-47bb-0310-9956-ffa450edef68
2017-03-28 21:10:28 +00:00
Yann Ylavic
cd4726984f http2: silent compiler warning.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789221 13f79535-47bb-0310-9956-ffa450edef68
2017-03-28 21:07:21 +00:00
Christophe Jaillet
8d0889252c Synch style in comment with 2.4.x.
Style was different when r1496711  has been backported in r1772331

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789002 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 20:06:31 +00:00
Christophe Jaillet
97c9589568 Group bit field values in order to save some memory.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789000 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 19:52:43 +00:00
Christophe Jaillet
2cd566b817 Improve indentation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788998 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 19:49:58 +00:00
Christophe Jaillet
8533abfc41 Save a few cycles.
'apr_pstrcatv' can compute the length of the new string for us.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788996 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 19:48:19 +00:00
Stefan Eissing
ea16c6ebfe On the trunk:
mod_http2: input buffering and dynamic flow windows for increased throughput.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788981 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 16:31:38 +00:00
Daniel Ruggeri
9ec2f2860e Finally include feedback from Ruediger Pluem. Add slave "backoff" verified by Sander Hoentjen
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788674 13f79535-47bb-0310-9956-ffa450edef68
2017-03-25 17:24:23 +00:00
Stefan Eissing
f56c4d6254 On the trunk:
mod_http2: h2 workers with improved scalability for better scheduling
     performance. There are H2MaxWorkers threads created at start and the
     number is kept constant. 



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788672 13f79535-47bb-0310-9956-ffa450edef68
2017-03-25 16:07:30 +00:00
Eric Covener
5811344b04 no strncasecmp because flag has no value
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788451 13f79535-47bb-0310-9956-ffa450edef68
2017-03-24 14:09:52 +00:00
Yann Ylavic
cee2df66f0 mod_ssl: follow up to r1781575
Fix SSLOCSPNoVerify merging, and while at it capitalize Verify as suggested
by wrowe.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788430 13f79535-47bb-0310-9956-ffa450edef68
2017-03-24 12:40:27 +00:00
Eric Covener
3555d2d597 drop the longhand version
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788040 13f79535-47bb-0310-9956-ffa450edef68
2017-03-22 00:00:30 +00:00
Christophe Jaillet
4c3dc1b748 Use 'ap_cstr_casecmp' to simplify code.
Remove useless case. We know that to can not be NULL at this point.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788033 13f79535-47bb-0310-9956-ffa450edef68
2017-03-21 23:08:27 +00:00
Christophe Jaillet
efcbe82095 Save a few bytes in the conf pool.
'push_item' and 'add_alt' already duplicate their parameters, so we can safely use the temp_pool here.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788032 13f79535-47bb-0310-9956-ffa450edef68
2017-03-21 23:05:52 +00:00
Stefan Eissing
dadde98190 On the trunk:
mod_ssl: treat SSLConnRecs as const during var lookups.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1787605 13f79535-47bb-0310-9956-ffa450edef68
2017-03-19 10:32:53 +00:00
Stefan Eissing
d645af686d On the trunk:
mod_http2: ripped out H2SessionExtraFiles directive, removed super special sender pool handling in bucket beams.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1787604 13f79535-47bb-0310-9956-ffa450edef68
2017-03-19 10:31:48 +00:00
Eric Covener
3eb2a25d55 update comments post-r1787525
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1787553 13f79535-47bb-0310-9956-ffa450edef68
2017-03-18 12:51:28 +00:00
Eric Covener
e87d66b81e Add IndexOptions UseOldDateFormat
*) mod_autoindex: Add IndexOptions UseOldDateFormat to allow the date
     format from 2.2 in the Last Modified column. PR60846.
  
   PR34014 / r903052 changed date format for autoindex 

Submitted By: Hank Ibell <hwibell gmail.com>




git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1787525 13f79535-47bb-0310-9956-ffa450edef68
2017-03-18 02:51:02 +00:00
Stefan Eissing
804c19c4f7 On the trunk:
mod_http2: fixed PR60869 by making h2 workers exit explicitly waking up
     all threads to exit in a defined way.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1787141 13f79535-47bb-0310-9956-ffa450edef68
2017-03-16 08:40:52 +00:00
Stefan Eissing
4df8e313bf On the trunk:
mod_http2: documentation and formatting



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1787051 13f79535-47bb-0310-9956-ffa450edef68
2017-03-15 14:19:51 +00:00