comparison src/http/modules/ngx_http_memcached_module.c @ 1716:a33e2a1a4e4c stable-0.5

r1568 merge: memcached did not set $upstream_response_time
author Igor Sysoev <igor@sysoev.ru>
date Wed, 12 Dec 2007 16:58:44 +0000
parents d5db0e96bcc6
children
comparison
equal deleted inserted replaced
1715:7ecf7e78e1ab 1716:a33e2a1a4e4c
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: