Skip to content

Commit

Permalink
Merge pull request grpc#2356 from ctiller/hosts-need-names-too
Browse files Browse the repository at this point in the history
Fix host name matching not working
  • Loading branch information
yang-g committed Jul 10, 2015
2 parents 909f3b4 + c6d6d90 commit 7304e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/surface/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7304e09

Please sign in to comment.