Is the debug file attached ?

> On Jan 18, 2019, at 8:18 AM, Brian Wagener <[email protected]> wrote:
> 
> I don't think it is either of those. I was able to capture grpc debug and it 
> shows that the actual fd_create to Port 50074 doesn't even get called in this 
> case until 8 seconds after trying to connect. Can someone look at debug file 
> and see what grpc is doing?
> 
> Brian
> 
>> On Thu, Jan 17, 2019, 3:09 PM robert engels <[email protected]> wrote:
>> If you are running a tight loop with lots of connection attempts there are a 
>> lot of reasons it can fail. usually resources (number of connections) - so 
>> while the OS is waiting to close the existing connections, future attempts 
>> will fail.
>> 
>>> On Jan 17, 2019, at 1:54 PM, [email protected] wrote:
>>> 
>>> I don't really understand the question, but  I have tested retry by just 
>>> starting and stopping server.
>>> 
>>> 
>>>> On Thursday, January 17, 2019 at 2:46:44 PM UTC-5, robert engels wrote:
>>>> How are you testing the retry - pulling plug? iptables ?
>>>> 
>>>>> On Jan 17, 2019, at 1:39 PM, [email protected] wrote:
>>>>> 
>>>>> 
>>>>> I have a gRPC streaming client, that has to handle server going up and 
>>>>> down, so I have a while loop, but sometimes it works fine, but other 
>>>>> times it takes 15 seconds to connect even on the same machine. Is it 
>>>>> something wrong with my code, or how can I debug? As you can see below I 
>>>>> have debug to print out channel state, and is mostly 
>>>>> GRPC_CHANNEL_CONNECTING  or GRPC_CHANNEL_TRANSIENT_FAILURE , but still 
>>>>> can take 15 seconds to connect. I haven't found a pattern. Can someone 
>>>>> tell me how I get it to connect faster and more reliably?  Thanks.  Note 
>>>>> I am using a deadline, so that I can shut everything down at the end 
>>>>> gracefully, and not have it block forever.
>>>>> 
>>>>> 
>>>>> 
>>>>> ...
>>>>> 
>>>>> channel = grpc::CreateChannel(asServerAddress, channel_creds);
>>>>> 
>>>>>  while ((channel->GetState(true) != GRPC_CHANNEL_READY))
>>>>>     {
>>>>>       time_point deadline = std::chrono::system_clock::now() + 
>>>>> std::chrono::milliseconds(1000);
>>>>>       
>>>>>       channel->WaitForConnected(deadline);
>>>>>       std::cout << "." << channel->GetState(false) << std::flush ;
>>>>>     }
>>>>> std::cout << "Client Connected" << std::endl;
>>>>> 
>>>>> ....
>>>>> 
>>>>> 
>>>>> 
>>>>> -- 
>>>>> 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 post to this group, send email to [email protected].
>>>>> Visit this group at https://groups.google.com/group/grpc-io.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/grpc-io/06cb24fd-f91f-42d4-b495-9c701b2457ae%40googlegroups.com.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>> 
>>> 
>>> 
>>> -- 
>>> 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 post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/grpc-io.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/grpc-io/6661bf81-8734-4c0f-a6a0-fc5b1adfce8e%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>> 
> 
> -- 
> 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 post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/grpc-io/CAMBUOonNs_AkpsYXeC5e0QMKoLjwgizuCMHo5g3LHAhJZ0SDsA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
> <connect.txt>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/D1BE968F-26A4-43F5-9C2C-8B3A1FB3D83B%40earthlink.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to