diff options
author | Yang Gao <yangg@google.com> | 2015-07-09 17:04:18 -0700 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-07-09 17:04:18 -0700 |
commit | 7304e0948a5fcd7e247520deac62d9e2e292f824 (patch) | |
tree | 2a0ebc61a4c31418b381e27c7eb2407aed33cafe | |
parent | 909f3b4c4d1e0d7ffad3a339194962831db69aa2 (diff) | |
parent | c6d6d9056d809c560688f62bf19a02463b7487fd (diff) |
Merge pull request #2356 from ctiller/hosts-need-names-too
Fix host name matching not working
-rw-r--r-- | src/core/surface/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/surface/server.c b/src/core/surface/server.c index a9d8940631..5af5f47781 100644 --- a/src/core/surface/server.c +++ b/src/core/surface/server.c @@ -441,7 +441,7 @@ static void start_new_rpc(grpc_call_element *elem) { /* TODO(ctiller): unify these two searches */ /* check for an exact match with host */ hash = GRPC_MDSTR_KV_HASH(calld->host->hash, calld->path->hash); - for (i = 0; i < chand->registered_method_max_probes; i++) { + for (i = 0; i <= chand->registered_method_max_probes; i++) { rm = &chand->registered_methods[(hash + i) % chand->registered_method_slots]; if (!rm) break; |