Welcome! Log In Create A New Profile

Advanced

Re: ngx_http_redis-0.3.1

Sergey A. Osokin
December 27, 2009 04:30AM
On Sat, Dec 26, 2009 at 10:35:46AM -0800, Konstantin Svist wrote:
> On 12/26/2009 05:25 AM, Sergey A. Osokin wrote:
> > *) Изменение: при возникновении ошибки модуль возвращает
> > 502 вместо 404.
> >
>
> Т.е. возвращал 502 а теперь 404

Нет. Ранее возвращал 404, а теперь возвращает 502.
Ниже diff между 0.3.0 и 0.3.1.

@@ -376,11 +388,13 @@
ctx = ngx_http_get_module_ctx(r, ngx_http_redis_module);

if (ngx_strncmp(p, "-ERR", sizeof("-ERR") - 1) == 0) {
- ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
- "error was received from redis");
+ ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
+ "redis sent error in response \"%V\" "
+ "for key \"%V\"",
+ &line, &ctx->key);

- u->headers_in.status_n = 404;
- u->state->status = 404;
+ u->headers_in.status_n = 502;
+ u->state->status = 502;

return NGX_OK;
}

--
Sergey A. Osokin,
osa@FreeBSD.ORG
osa@MAcomnet.ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

ngx_http_redis-0.3.1

Sergey A. Osokin December 26, 2009 08:28AM

Re: ngx_http_redis-0.3.1

Konstantin Svist December 26, 2009 01:36PM

Re: ngx_http_redis-0.3.1

Sergey A. Osokin December 27, 2009 04:30AM

Re: ngx_http_redis-0.3.1

Aleksej Novikov May 13, 2010 03:52AM

Re: ngx_http_redis-0.3.1

Oleksandr V. Typlyns'kyi May 13, 2010 04:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready