Mercurial > hg > nginx-vendor-0-6
comparison src/http/modules/ngx_http_memcached_module.c @ 282:675a39fd14cd NGINX_0_5_11
nginx 0.5.11
*) Feature: now configure detects system PCRE library in MacPorts.
Thanks to Chris McGrath.
*) Bugfix: the response was incorrect if several ranges were requested;
bug appeared in 0.5.6.
*) Bugfix: the "create_full_put_path" directive could not create the
intermediate directories if no "dav_access" directive was set.
Thanks to Evan Miller.
*) Bugfix: the "0" response code might be logged in the access_log
instead of the "400" and "408" error codes.
*) Bugfix: a segmentation fault might occur in worker process if nginx
was built with -O2 optimization.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 05 Feb 2007 00:00:00 +0300 |
parents | 704622b2528a |
children | 95d92ec39071 |
comparison
equal
deleted
inserted
replaced
281:5338da501733 | 282:675a39fd14cd |
---|---|
240 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | 240 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, |
241 "the \"$memcached_key\" variable is not set"); | 241 "the \"$memcached_key\" variable is not set"); |
242 return NGX_ERROR; | 242 return NGX_ERROR; |
243 } | 243 } |
244 | 244 |
245 len = sizeof("get ") - 1 + vv->len + sizeof(" " CRLF) - 1; | 245 len = sizeof("get ") - 1 + vv->len + sizeof(CRLF) - 1; |
246 if (vv->len) { | 246 if (vv->len) { |
247 len += 1 + vv->len; | 247 len += 1 + vv->len; |
248 } | 248 } |
249 | 249 |
250 b = ngx_create_temp_buf(r->pool, len); | 250 b = ngx_create_temp_buf(r->pool, len); |
273 ctx->key.len = b->last - ctx->key.data; | 273 ctx->key.len = b->last - ctx->key.data; |
274 | 274 |
275 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 275 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
276 "http memcached request: \"%V\"", &ctx->key); | 276 "http memcached request: \"%V\"", &ctx->key); |
277 | 277 |
278 *b->last++ = ' '; *b->last++ = CR; *b->last++ = LF; | 278 *b->last++ = CR; *b->last++ = LF; |
279 | 279 |
280 return NGX_OK; | 280 return NGX_OK; |
281 } | 281 } |
282 | 282 |
283 | 283 |