ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Максиму Дунину ngx http upstrea m keepalive + upstream keepalive patch 100% загрузка CPU


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Максиму Дунину ngx http upstrea m keepalive + upstream keepalive patch 100% загрузка CPU
  • From: "INF[SZ]" <nginx-forum@xxxxxxxx>
  • Date: Wed, 07 Sep 2011 04:59:48 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=HilREsgK+RJnXzgGkTwe253/H7L1TuJDf2V2jhhwwaM=; b=HP8pBof7EA6oQ6bqeCLyO1vtaHTgGetXn6NHmC1VUq4PhHsm8VCOwxbsXdH5ludL9dDQStLSHugNY1eJzpHKXJQA7Wfyy0RY5L1/1F689KYLfRWu4eYAM1CKVVT71rzj;
  • In-reply-to: <20110907071012.GD1137@xxxxxxxxxx>
  • References: <20110907071012.GD1137@xxxxxxxxxx>

Максим nginx-1.1.2 с патчем
http://nginx.org/patches/patch-nginx-keepalive-full-5.txt при 

./configure     --user=%{nginx_user}     --group=%{nginx_group}     --prefix=%{nginx_datadir}     --sbin-path=%{_sbindir}/%{name}     --conf-path=%{nginx_confdir}/%{name}.conf     --error-log-path=%{nginx_logdir}/error.log     --http-log-path=%{nginx_logdir}/access.log     --http-client-body-temp-path=%{nginx_home_tmp}/client_body     --http-proxy-temp-path=%{nginx_home_tmp}/proxy     --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi     --pid-path=%{_localstatedir}/run/%{name}.pid     --lock-path=%{_localstatedir}/lock/subsys/%{name}     --with-http_secure_link_module     --with-http_random_index_module     --with-http_ssl_module     --with-http_realip_module     --with-http_addition_module     --with-http_sub_module     --with-http_dav_module     --with-http_flv_module     --with-http_gzip_static_module     --with-http_stub_status_module     --with-http_perl_module     --with-http_geoip_module     --with-mail     --with-mail_ssl_module     --with-cc-opt="%{optflags} $(pcre-config --cflags)"     --with-ipv6     --with-file-aio     --add-module=%{_builddir}/nginx-%{version}/nginx-upstream-fair    
--add-module=%{_builddir}/nginx-%{version}/nginx-upload-progress-module
    --add-module=%{_builddir}/nginx-%{version}/mod_zip-1.1.6     --add-module=%{_builddir}/nginx-%{version}/nginx_upload_module-2.2.0
   
--add-module=%{_builddir}/nginx-%{version}/nginx_mod_h264_streaming-2.2.7
   
--add-module=%{_builddir}/nginx-%{version}/ngx_http_auth_pam_module-1.2
   
--add-module=%{_builddir}/nginx-%{version}/ngx_http_upstream_keepalive-0.6


получаю ошибку 

objs/addon/ngx_http_upstream_keepalive-0.6/ngx_http_upstream_keepalive_module.o:(.data+0x0):
multiple definition of `ngx_http_upstream_keepalive_module'
objs/src/http/modules/ngx_http_upstream_keepalive_module.o:(.data+0x0):
first defined here
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/home/mock/BUILD_ROOT/BUILD/nginx-1.1.2'
make: *** [build] Error 2

правильно ли я понимаю, что в патче
http://nginx.org/patches/patch-nginx-keepalive-full-5.txt  строки


 diff --git a/auto/sources b/auto/sources
 --- a/auto/sources
 +++ b/auto/sources
 @@ -471,6 +471,11 @@ HTTP_UPSTREAM_IP_HASH_MODULE=ngx_http_up
 
HTTP_UPSTREAM_IP_HASH_SRCS=src/http/modules/ngx_http_upstream_ip_hash_module.c
  
  
 +HTTP_UPSTREAM_KEEPALIVE_MODULE=ngx_http_upstream_keepalive_module
 +HTTP_UPSTREAM_KEEPALIVE_SRCS="  +    src/http/modules/ngx_http_upstream_keepalive_module.c"
 +
 +
  MAIL_INCS="src/mail"
  
  MAIL_DEPS="src/mail/ngx_mail.h"

в моем случае лишние ?

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,214936,214938#msg-214938

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.