Mercurial > hg > nginx
comparison src/http/modules/ngx_http_memcached_module.c @ 1567:31d4278d51c0
memcached did not set $upstream_response_time
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 15 Oct 2007 09:46:36 +0000 |
parents | 30fcc8478d85 |
children | 13f8dec720b5 |
comparison
equal
deleted
inserted
replaced
1566:f00b905cb70b | 1567:31d4278d51c0 |
---|---|
369 &line, &ctx->key); | 369 &line, &ctx->key); |
370 return NGX_HTTP_UPSTREAM_INVALID_HEADER; | 370 return NGX_HTTP_UPSTREAM_INVALID_HEADER; |
371 } | 371 } |
372 | 372 |
373 u->headers_in.status_n = 200; | 373 u->headers_in.status_n = 200; |
374 u->state->status = 200; | |
374 u->buffer.pos = p + 1; | 375 u->buffer.pos = p + 1; |
375 | 376 |
376 return NGX_OK; | 377 return NGX_OK; |
377 } | 378 } |
378 | 379 |
379 if (ngx_strcmp(p, "END\x0d") == 0) { | 380 if (ngx_strcmp(p, "END\x0d") == 0) { |
380 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0, | 381 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0, |
381 "key: \"%V\" was not found by memcached", &ctx->key); | 382 "key: \"%V\" was not found by memcached", &ctx->key); |
382 | 383 |
383 u->headers_in.status_n = 404; | 384 u->headers_in.status_n = 404; |
385 u->state->status = 404; | |
384 | 386 |
385 return NGX_OK; | 387 return NGX_OK; |
386 } | 388 } |
387 | 389 |
388 no_valid: | 390 no_valid: |