Branch: Tag:

2016-10-28

2016-10-28 13:51:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

HTTP: Improved robustness.

Send an internal server error if things_to_do_when_not_sending_from_cache()
throws an error.

Previously the connection was aborted.

Fixes some more of 7818.

3264:    TIMER_END(cache_lookup);   #endif // RAM_CACHE    TIMER_START(parse_request); +  if (mixed err = catch {    if( things_to_do_when_not_sending_from_cache( ) )    return; -  +  }) { +  internal_error(err); +  roxen.handle(send_result); +  return; +  }    REQUEST_WERR(sprintf("HTTP: cooked headers %O", request_headers));    REQUEST_WERR(sprintf("HTTP: cooked variables %O", real_variables));    REQUEST_WERR(sprintf("HTTP: cooked cookies %O", cookies));