OSDN Git Service

Add weight check...
author0809216 <0809216@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Tue, 7 Sep 2010 08:01:17 +0000 (08:01 +0000)
committer0809216 <0809216@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Tue, 7 Sep 2010 08:01:17 +0000 (08:01 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10282 1ed66053-1c2d-0410-8867-f7571e6e31d3

l7vsd/module/protocol/protocol_module_ip.cpp

index 2137ecb..d4ca855 100644 (file)
@@ -1841,7 +1841,9 @@ protocol_module_base::EVENT_TAG protocol_module_ip::handle_realserver_select(
                                 while (rs_list_itr != rs_list_end()) {
 
                                         if (rs_list_itr->tcp_endpoint == rs_endpoint) {
-                                                is_match = 1;
+                                                if (rs_list_itr->weight != 0) {
+                                                        is_match = 1;
+                                                }
                                                 break;
                                         }