src/ngx_pagespeed.cc
// we are still at pagespeed phase
we are still at pagespeed phase
we are still at pagespeed phase
ngx_int_t ps_decline_request(ngx_http_request_t* r) {
  ps_request_ctx_t* ctx = ps_get_request_context(r);
  CHECK(ctx != NULL);
  ctx->driver->Cleanup();
  ctx->driver = NULL;
  ctx->location_field_set = false;
  ctx->psol_vary_accept_only = false;
  ctx->html_rewrite = true;
  ctx->in_place = false;
  ps_release_base_fetch(ctx);
  ps_set_buffered(r, false);
  r->count++;
  r->phase_handler++;
  r->read_event_handler = ngx_http_block_reading;
  r->write_event_handler = ngx_http_core_run_phases;
  ngx_http_core_run_phases(r);
  ngx_http_run_posted_requests(r->connection);
  return NGX_DONE;
}
ngx_int_t ps_decline_request ( ngx_http_request_t * r ) { ps_request_ctx_t * ctx = ps_get_request_context ( r ) ; CHECK ( ctx != NULL ) ; ctx -> driver -> Cleanup ( ) ; ctx -> driver = NULL ; ctx -> location_field_set = false ; ctx -> psol_vary_accept_only = false ; ctx -> html_rewrite = true ; ctx -> in_place = false ; ps_release_base_fetch ( ctx ) ; ps_set_buffered ( r , false ) ; r -> count ++ ; r -> phase_handler ++ ; r -> read_event_handler = ngx_http_block_reading ; r -> write_event_handler = ngx_http_core_run_phases ; ngx_http_core_run_phases ( r ) ; ngx_http_run_posted_requests ( r -> connection ) ; return NGX_DONE ; }
we are still at pagespeed phase
we are still at pagespeed phase
// re init ctx //restore read_event_handler to what it was in ps_async_wait_response