|
|
|
@ -69,6 +69,8 @@ void test_request_call_on_no_server_cq(void) { |
|
|
|
|
grpc_server_destroy(server); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GRPC_ARG_ALLOW_REUSEPORT isn't supported for custom servers
|
|
|
|
|
#ifndef GRPC_UV |
|
|
|
|
void test_bind_server_twice(void) { |
|
|
|
|
grpc_arg a; |
|
|
|
|
a.type = GRPC_ARG_INTEGER; |
|
|
|
@ -100,6 +102,7 @@ void test_bind_server_twice(void) { |
|
|
|
|
grpc_completion_queue_destroy(cq); |
|
|
|
|
gpr_free(addr); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
void test_bind_server_to_addr(const char* host, bool secure) { |
|
|
|
|
int port = grpc_pick_unused_port_or_die(); |
|
|
|
@ -149,7 +152,9 @@ int main(int argc, char** argv) { |
|
|
|
|
grpc_init(); |
|
|
|
|
test_register_method_fail(); |
|
|
|
|
test_request_call_on_no_server_cq(); |
|
|
|
|
#ifndef GRPC_UV |
|
|
|
|
test_bind_server_twice(); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
static const char* addrs[] = { |
|
|
|
|
"::1", "127.0.0.1", "::ffff:127.0.0.1", "localhost", "0.0.0.0", "::", |
|
|
|
|