|
|
@ -687,7 +687,7 @@ grpc_transport_setup_result grpc_server_setup_transport( |
|
|
|
memset(chand->registered_methods, 0, alloc); |
|
|
|
memset(chand->registered_methods, 0, alloc); |
|
|
|
for (rm = s->registered_methods; rm; rm = rm->next) { |
|
|
|
for (rm = s->registered_methods; rm; rm = rm->next) { |
|
|
|
host = rm->host ? grpc_mdstr_from_string(mdctx, rm->host) : NULL; |
|
|
|
host = rm->host ? grpc_mdstr_from_string(mdctx, rm->host) : NULL; |
|
|
|
method = grpc_mdstr_from_string(mdctx, rm->host); |
|
|
|
method = grpc_mdstr_from_string(mdctx, rm->method); |
|
|
|
hash = GRPC_MDSTR_KV_HASH(host ? host->hash : 0, method->hash); |
|
|
|
hash = GRPC_MDSTR_KV_HASH(host ? host->hash : 0, method->hash); |
|
|
|
for (probes = 0; chand->registered_methods[(hash + probes) % slots] |
|
|
|
for (probes = 0; chand->registered_methods[(hash + probes) % slots] |
|
|
|
.server_registered_method != NULL; |
|
|
|
.server_registered_method != NULL; |
|
|
|