Has anyone of y'all seen this in a more recent version of gRPC. `1.30.2` is 
really old.

On Tuesday, February 1, 2022 at 12:15:54 AM UTC-8 Prasanta Behera wrote:

> No, I've not found any solution yet! I was trying to have a hello-world 
> kind of example to reproduce to open a ticket, but as you said with such 
> simple examples it never reproduces...
>
> On Tuesday, February 1, 2022 at 1:42:43 PM UTC+5:30 Anh Tran wrote:
>
>> I should also add that this behavior happens during threading. 
>>
>> On Tuesday, February 1, 2022 at 3:45:04 PM UTC+10 Anh Tran wrote:
>>
>>> Unfortunately I came across the same problem. 
>>> When trying to isolate the problem (having a simple hello world 
>>> server-client), the problem seems to go away, i.e server can be shut down. 
>>>
>>> But when using in my own project, this happens. And despite my effort to 
>>> track down the problem, I can't seem to spot one.
>>> This is weird since this version of Shutdown should force shut down 
>>> after a certain period, as describe in the doc.
>>>
>>> Prasanta, do you happen to find the solution to your problem? Maybe it 
>>> will give a hint to mine.
>>>
>>> On Thursday, January 20, 2022 at 10:02:43 PM UTC+10 Prasanta Behera 
>>> wrote:
>>>
>>>> gRPC version : 1.30.2 (c++)
>>>> $ gcc --version
>>>> gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
>>>>
>>>> We use gRPC is synchronous mode and stop our gRPC services with this 
>>>> code
>>>>
>>>> m_server->Shutdown(std::chrono::system_clock::now() + 
>>>> std::chrono::seconds(1));
>>>> m_server->Wait();
>>>>
>>>> On rare occasions (about once in 1000  tries) the Shutdown() call does 
>>>> NOT return and the process just hangs.
>>>>
>>>> Is there anything I missing to have a reliable shutdown of the server?
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/f3e745f7-cc99-4667-a447-b758eef00d1en%40googlegroups.com.

Reply via email to