zhuxiachen / nginx-upstream-jvm-route

Automatically exported from code.google.com/p/nginx-upstream-jvm-route
0 stars 0 forks source link

srun_id 变成invalid 参数 #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
您好,

打了您的补丁,编译0.7.64没有出现任何错误。但在配置nginx.co
nf后,检查 config
文件报出:[emerg]: invalid parameter "srun_id=jvmRoute1" in /usr/local/
nginx/conf/nginx.conf:180 错误。不知道是什么问题?谢谢~!

Original issue reported on code.google.com by ampyx...@gmail.com on 4 Feb 2010 at 4:54

GoogleCodeExporter commented 8 years ago
Same here when patched and compiled against nginx 0.7.65

Original comment by hajo.veg...@gmail.com on 6 Mar 2010 at 2:53

GoogleCodeExporter commented 8 years ago
put your upstream block before the proxy_pass directive in the config file

Original comment by yaoweibin@gmail.com on 15 Apr 2010 at 4:22

GoogleCodeExporter commented 8 years ago
i am facing the same issue... and my upstream block is befor proxy_pass...

Original comment by jfaer...@gmail.com on 4 Nov 2010 at 7:05

GoogleCodeExporter commented 8 years ago
Do you add the patch? What's your version of Nginx?

Original comment by yaoweibin@gmail.com on 5 Nov 2010 at 2:30

GoogleCodeExporter commented 8 years ago
我是直接把下面的代码注释掉了,就好了.  

        if (ngx_strncmp(value[i].data, "srun_id=", 8) == 0) {

            printf("%uscf->flags: 0x%x", uscf->flags); //打印出来时1f,正常应该是7f,不知为什么。   
            //if (!(uscf->flags & NGX_HTTP_UPSTREAM_SRUN_ID)) {
            //    goto invalid;
            //}

            id.len = value[i].len - 8;
            id.data = &value[i].data[8];

            if (id.len == 0) {
                goto invalid;
            }

            continue;
        }

Original comment by mr.yan...@gmail.com on 28 Apr 2013 at 7:23

Attachments: