From 11c5429184c3bf04b33347c6e5e2ba5ef8f57c2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Thu, 25 Apr 2013 13:43:50 +0200 Subject: [PATCH] fixed cache sync parsing - uwsgi_hooked_parse() was getting invalid data lenght --- core/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cache.c b/core/cache.c index 6b49e9ae..0cb74d04 100644 --- a/core/cache.c +++ b/core/cache.c @@ -1737,7 +1737,7 @@ void uwsgi_cache_sync_from_nodes(struct uwsgi_cache *uc) { goto next; } - uwsgi_hooked_parse(ub->buf, ub->pos, cache_sync_hook, uc); + uwsgi_hooked_parse(ub->buf, rlen, cache_sync_hook, uc); if (uwsgi_read_nb(fd, (char *) uc->items, uc->filesize, uwsgi.shared->options[UWSGI_OPTION_SOCKET_TIMEOUT])) { uwsgi_buffer_destroy(ub);