Compare commits

...

9 Commits

Author SHA1 Message Date
Otto van der Schaaf e6931ba037 Release version 1.12.34.3 2017-09-28 14:48:58 +02:00
Otto van der Schaaf f4124cb5d1 Correct the ngx_pagespeed-specific release version 2017-09-28 14:47:22 +02:00
Otto van der Schaaf cf57d720e0 nginx-1.13.4: use preprocessor define instead of const for comparison
Address a mistake I made in https://github.com/pagespeed/ngx_pagespeed/pull/1458

While testing the draft for 1.12.34.3 I noticed that older nginx
versions would fail to compile. Switch kNginx13_1_4 to a #define so we
can use it to properly compare.

Note: this will have to be backported to master
2017-09-28 14:47:22 +02:00
PikachuEXE 6320f71a7c Fix compiling issue with older nginx (#1470) 2017-09-28 14:47:22 +02:00
Otto van der Schaaf f5eccb7618 Adress @jmarantz his comment from #1453's review (#1458)
PR #1453 was merged too soon, using this PR to address
https://github.com/pagespeed/ngx_pagespeed/pull/1453#discussion_r134222719

(Sorry Josh!)
2017-09-28 14:47:22 +02:00
Otto van der Schaaf 257c2bcb54 nginx 1.13.4: Fix compilation error (#1453)
* Compilation of ngx_pagespeed broke with the following commit in
nginx: https://github.com/nginx/nginx/commit/129b06dc5dfab7b4513a4f274b3778cd9b8a6a22
This change intends to unbreak it while maintaining backwards
compatibility.

Fixes https://github.com/pagespeed/ngx_pagespeed/issues/1451
2017-09-28 14:47:22 +02:00
Otto van der Schaaf b70c70ecb9 Revert "stop crashing when unplugged" (#1400)
This is just for the branch. 1.12.34.2 will be marked as
stable, backing out this change avoids having to test a new
beta.

This reverts commit 149c47ace4.
2017-03-30 22:28:09 +02:00
Jeff Kaufman 149c47ace4 stop crashing when unplugged 2017-01-19 13:49:59 -05:00
Jeff Kaufman 0ca15283c8 travis: send emails to new pagespeed-ci group instead of individual devs 2016-12-19 13:47:02 -05:00
3 changed files with 20 additions and 7 deletions
+1 -6
View File
@@ -42,9 +42,4 @@ compiler:
- gcc
notifications:
email:
- cheesy@google.com
- jefftk@google.com
- morlovich@google.com
- jmarantz@google.com
- huibao@google.com
- jcrowell@google.com
- pagespeed-ci@googlegroups.com
+15 -1
View File
@@ -84,6 +84,7 @@ extern ngx_module_t ngx_pagespeed;
// Needed for SystemRewriteDriverFactory to use shared memory.
#define PAGESPEED_SUPPORT_POSIX_SHARED_MEM
#define NGINX_1_13_4 1013004
net_instaweb::NgxRewriteDriverFactory* active_driver_factory = NULL;
@@ -3007,13 +3008,17 @@ ngx_int_t ps_preaccess_handler(ngx_http_request_t* r) {
ph = cmcf->phase_engine.handlers;
i = r->phase_handler;
// move handlers before try_files && content phase
// As of nginx 1.13.4 we will be right before the try_files module
#if (nginx_version < NGINX_1_13_4)
while (ph[i + 1].checker != ngx_http_core_try_files_phase &&
ph[i + 1].checker != ngx_http_core_content_phase) {
ph[i] = ph[i + 1];
ph[i].next--;
i++;
}
#endif
// insert ps phase handler
ph[i].checker = ps_phase_handler;
@@ -3069,8 +3074,17 @@ ngx_int_t ps_init(ngx_conf_t* cf) {
ngx_http_core_main_conf_t* cmcf = static_cast<ngx_http_core_main_conf_t*>(
ngx_http_conf_get_module_main_conf(cf, ngx_http_core_module));
int phase = NGX_HTTP_PREACCESS_PHASE;
// As of nginx 1.13.4, try_files has changed.
// https://github.com/nginx/nginx/commit/129b06dc5dfab7b4513a4f274b3778cd9b8a6a22
#if (nginx_version >= NGINX_1_13_4)
phase = NGX_HTTP_PRECONTENT_PHASE;
#endif
ngx_http_handler_pt* h = static_cast<ngx_http_handler_pt*>(
ngx_array_push(&cmcf->phases[NGX_HTTP_PREACCESS_PHASE].handlers));
ngx_array_push(&cmcf->phases[phase].handlers));
if (h == NULL) {
return NGX_ERROR;
}
+4
View File
@@ -87,6 +87,10 @@ NgxRewriteDriverFactory::NgxRewriteDriverFactory(
shut_down_(false) {
InitializeDefaultOptions();
default_options()->set_beacon_url("/ngx_pagespeed_beacon");
// Put in the version of the ngx-pagespeed release. We don't release mod_pagespeed
// so we cannot rely on PSOL to hand us to right version. Note that if we perform
// another release, this must be either updated or removed.
default_options()->set_x_header_value("1.12.34.3-0");
SystemRewriteOptions* system_options = dynamic_cast<SystemRewriteOptions*>(
default_options());
system_options->set_file_cache_clean_inode_limit(500000);