upstream request hash patch

Sergey A. Osokin osa at FreeBSD.ORG.ru
Thu Jan 14 14:17:16 MSK 2010


Hi Marius,

On Wed, Jan 13, 2010 at 11:15:52PM +0200, Marius Danciu wrote:
> Hello all,
> 
> I tried applying the patch described here
> http://wiki.nginx.org/NginxHttpUpstreamRequestHashModule<http://www.google.com/url?sa=D&q=http://wiki.nginx.org/NginxHttpUpstreamRequestHashModule&usg=AFQjCNGXcoRKlxQ777m2ZngKEv2Myk2gUw>on
> source from build 0.7.63 however the patch failed. Is there some
> versions
> incompatibility of some sort?
> 
> Br's,
> Marius

try to use following patch instead of nginx.patch from
Nginx_upstream_hash-0.3.tar.gz distribution.

--- src/http/ngx_http_upstream.h.orig	2010-01-14 04:20:57.000000000 +0300
+++ src/http/ngx_http_upstream.h	2010-01-14 04:22:00.000000000 +0300
@@ -105,6 +105,10 @@
 
     ngx_array_t                     *servers;  /* ngx_http_upstream_server_t */
 
+    ngx_array_t                     *values;
+    ngx_array_t                     *lengths;
+    ngx_uint_t                       retries;
+
     ngx_uint_t                       flags;
     ngx_str_t                        host;
     u_char                          *file_name;

-- 
Sergey A. Osokin,
osa at FreeBSD.ORG
osa at FreeBSD.ORG.ru



More information about the nginx mailing list