Klaus Demo nginx / 6bdcc58
revert partially r1555 and fix the error "memcached sent invalid trailer" Igor Sysoev 12 years ago
1 changed file(s) with 8 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
431431
432432 if (ngx_strncmp(b->last,
433433 ngx_http_memcached_end + NGX_HTTP_MEMCACHED_END - ctx->rest,
434 ctx->rest)
434 bytes)
435435 != 0)
436436 {
437437 ngx_log_error(NGX_LOG_ERR, ctx->request->connection->log, 0,
438438 "memcached sent invalid trailer");
439
440 u->length = 0;
441 ctx->rest = 0;
442
443 return NGX_OK;
439444 }
440445
441 u->length = 0;
442 ctx->rest = 0;
446 u->length -= bytes;
447 ctx->rest -= bytes;
443448
444449 return NGX_OK;
445450 }