Hi Max, 

I had this patch [1] that indirectly fixes the issue lying around. So, is an 
EPOLLOUT | EPOLLHUP event enough to signal a failed async connect for you?

Thanks,
Florin

[1] https://gerrit.fd.io/r/c/vpp/+/22274 

> On Oct 18, 2019, at 2:07 AM, Max A. <[email protected]> wrote:
> 
> Hi Florin,
>  
> vppcom_session_connect in non-blocking mode works well only if the connection 
> can be successfully established. If the connection cannot be established, 
> then no event is raised about this. How can this be fixed?
>  
> Thanks.
> 
>  
> Четверг, 5 сентября 2019, 1:04 +03:00 от Florin Coras 
> <[email protected]>:
>  
> Hi Max, 
>  
> Here’s the patch that allows non-blocking connects [1]. 
>  
> Florin
>  
> [1] https://gerrit.fd.io/r/c/vpp/+/21610 
> <https://gerrit.fd.io/r/c/vpp/+/21610>
>  
>> On Aug 15, 2019, at 7:41 AM, Florin Coras via Lists.Fd.Io 
>> <[email protected] 
>> <x-msg://e.mail.ru/compose/?mailto=mailto%3afcoras.lists%[email protected]>>
>>  wrote:
>>  
>> Hi Max,
>> 
>> Not at this time. It should be possible with a few changes for nonblocking 
>> sessions. I’ll add it to my list, in case nobody else beats me to it.
>> 
>> Florin
>>  
>>> 
>>> On Aug 15, 2019, at 2:47 AM, Max A. via Lists.Fd.Io 
>>> <[email protected] 
>>> <x-msg://e.mail.ru/compose/?mailto=mailto%3amax1976%[email protected]>> 
>>> wrote:
>>> 
>>> Hello,
>>> 
>>> Can vppcom_session_connect() function run in non-blocking mode? I see that 
>>> there is a wait for the connection result in the 
>>> vppcom_wait_for_session_state_change function.  Is it possible to get the 
>>> result of the connection using vppcom_epoll_wait?
>>> 
>>> Thanks.
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>> Links: You receive all messages sent to this group.
>>> 
>>> View/Reply Online (#13745): https://lists.fd.io/g/vpp-dev/message/13745 
>>> <https://lists.fd.io/g/vpp-dev/message/13745>
>>> Mute This Topic: https://lists.fd.io/mt/32885087/675152 
>>> <https://lists.fd.io/mt/32885087/675152>
>>> Group Owner: [email protected] 
>>> <x-msg://e.mail.ru/compose/?mailto=mailto%3avpp%2ddev%[email protected]>
>>> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub 
>>> <https://lists.fd.io/g/vpp-dev/unsub>  [[email protected] 
>>> <x-msg://e.mail.ru/compose/?mailto=mailto%[email protected]>]
>>> -=-=-=-=-=-=-=-=-=-=-=-
>> 
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> 
>> View/Reply Online (#13747): https://lists.fd.io/g/vpp-dev/message/13747 
>> <https://lists.fd.io/g/vpp-dev/message/13747>
>> Mute This Topic: https://lists.fd.io/mt/32885087/675152 
>> <https://lists.fd.io/mt/32885087/675152>
>> Group Owner: [email protected] 
>> <x-msg://e.mail.ru/compose/?mailto=mailto%3avpp%2ddev%[email protected]>
>> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub 
>> <https://lists.fd.io/g/vpp-dev/unsub>  [[email protected] 
>> <x-msg://e.mail.ru/compose/?mailto=mailto%[email protected]>]
>> -=-=-=-=-=-=-=-=-=-=-=-
>  
>  
> --
> Max A.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#14236): https://lists.fd.io/g/vpp-dev/message/14236
Mute This Topic: https://lists.fd.io/mt/32885087/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to