With using grpc, If server is not in serving, client will try to connect again and again. like that
E0623 23:00:55.347071102 9431 tcp_client_posix.c:191] failed to connect to 'ipv4:
101.201.77.240:50052': timeout occurred
E0623 23:01:01.860252293 9431 tcp_client_posix.c:191] failed to connect to 'ipv4:
101.201.77.240:50052': timeout occurred
E0623 23:01:13.193809141 9431 tcp_client_posix.c:191] failed to connect to 'ipv4:
101.201.77.240:50052': timeout occurred
I even cannot break it by ctrl +c. I must find out the pid and then kill it.
I want it throw a exception, I could catch it and then return or do something else, rather than try to connect again and again.