OSDN Git Service

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

l7vsd/module/protocol/protocol_module_sslid.cpp

index 23af7f2..d5723a7 100644 (file)
@@ -1625,7 +1625,9 @@ protocol_module_base::EVENT_TAG protocol_module_sslid::handle_realserver_select(
 
                                                 while (rs_list_itr != rs_list_end()) {
                                                         if (rs_list_itr->tcp_endpoint == threaddata->selected_realserver) {
-                                                                is_match = 1;
+                                                                if (rs_list_itr->weight != 0) {
+                                                                        is_match = 1;
+                                                                }
                                                                 break;
                                                         }